Disable "warning: enumeration value `...' not handled in switch".
This is actually a very useful warning, but we use "NUM_FOO" entries in enums too much, we often intentionally have partial switches, and if we4 put a default: in every switch, this warning is pointless.
This commit is contained in:
@@ -15,8 +15,8 @@ test -z "$LDFLAGS" && DEFAULT_LDFLAGS=yes
|
|||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
|
|
||||||
test "$DEFAULT_CFLAGS" = "yes" && CFLAGS="-Wall -W -Wno-unused"
|
test "$DEFAULT_CFLAGS" = "yes" && CFLAGS="-Wall -W -Wno-unused -Wno-switch"
|
||||||
test "$DEFAULT_CXXFLAGS" = "yes" && CXXFLAGS="-Wall -W -Wno-unused"
|
test "$DEFAULT_CXXFLAGS" = "yes" && CXXFLAGS="-Wall -W -Wno-unused -Wno-switch"
|
||||||
test "$DEFAULT_LDFLAGS" = "yes" && LDFLAGS=""
|
test "$DEFAULT_LDFLAGS" = "yes" && LDFLAGS=""
|
||||||
|
|
||||||
SM_OPENGL
|
SM_OPENGL
|
||||||
|
|||||||
Reference in New Issue
Block a user