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:
Glenn Maynard
2003-09-19 00:54:38 +00:00
parent 8227fae6b9
commit 0324bc3f51
+2 -2
View File
@@ -15,8 +15,8 @@ test -z "$LDFLAGS" && DEFAULT_LDFLAGS=yes
AC_PROG_CC
AC_PROG_CXX
test "$DEFAULT_CFLAGS" = "yes" && CFLAGS="-Wall -W -Wno-unused"
test "$DEFAULT_CXXFLAGS" = "yes" && CXXFLAGS="-Wall -W -Wno-unused"
test "$DEFAULT_CFLAGS" = "yes" && CFLAGS="-Wall -W -Wno-unused -Wno-switch"
test "$DEFAULT_CXXFLAGS" = "yes" && CXXFLAGS="-Wall -W -Wno-unused -Wno-switch"
test "$DEFAULT_LDFLAGS" = "yes" && LDFLAGS=""
SM_OPENGL