[MPlayer-dev-eng] [PATCH] Add -Wno-switch to CFLAGS

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jun 7 19:00:35 CEST 2007


Hi!

Two or three files in libavcodec produce an unbelievable number of this
warning:
enumeration value 'CODEC_ID_NONE' not handled in switch

Following patch removes this warning (as in FFmpeg).

This time tested with gcc 2.95.3 (and g++);-)

Ok?

Carl Eugen

Index: configure
===================================================================
--- configure   (Revision 23494)
+++ configure   (Arbeitskopie)
@@ -2251,7 +2251,7 @@
   elif test "$cc_vendor" != "gnu" ; then
     CFLAGS="-O2 $_march $_mcpu $_pipe"
   else
-    CFLAGS="-Wall -O4 $_march $_mcpu $_pipe -ffast-math
-fomit-frame-pointer"
+    CFLAGS="-Wall -Wno-switch -O4 $_march $_mcpu $_pipe -ffast-math
-fomit-frame-pointer"
   fi
 else
   _warn_CFLAGS=yes


(Patch does not apply as-is, I'll fix it if ok.)



More information about the MPlayer-dev-eng mailing list