[FFmpeg-devel] [PATCH]Silence a msvc warning

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Sep 18 18:17:25 CEST 2012


msvc currently often warns:
warning C4554: '>>' : check operator precedence for possible error; use 
parentheses to clarify precedence

I assume attached patch silences the warning (untested).

More important would be to silence:
warning C4005: 'av_restrict' : macro redefinition
        libavutil\attributes.h(66) : see previous definition of 'av_restrict'
But I am not sure where this should be done.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/configure b/configure
index 065a957..469eacf 100755
--- a/configure
+++ b/configure
@@ -2384,7 +2384,7 @@ msvc_flags(){
             -Wall)                echo -W4 -wd4244 -wd4127 -wd4018 -wd4389 \
                                        -wd4146 -wd4057 -wd4204 -wd4706 -wd4305 \
                                        -wd4152 -wd4324 -we4013 -wd4100 -wd4214 \
-                                       -wd4996 ;;
+                                       -wd4996 -wd4554 ;;
             -std=c99)             ;;
             -fno-math-errno)      ;;
             -fno-common)          ;;

More information about the ffmpeg-devel mailing list