Skip to content

Commit 9611aa8

Browse files
committed
Merge pull request opencv#9069 from catree:ffmpeg_warnings_errors
2 parents b10bd4b + 921f06e commit 9611aa8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/checks/ffmpeg_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ static void test()
1515
AVFormatContext* c = 0;
1616
AVCodec* avcodec = 0;
1717
AVFrame* frame = 0;
18+
(void)avcodec;
19+
(void)frame;
1820

1921
#if LIBAVFORMAT_BUILD >= CALC_FFMPEG_VERSION(52, 111, 0)
2022
int err = avformat_open_input(&c, "", NULL, NULL);
2123
#else
2224
int err = av_open_input_file(&c, "", NULL, 0, NULL);
2325
#endif
26+
(void)err;
2427
}
2528

2629
int main() { test(); return 0; }

0 commit comments

Comments
 (0)