From a6f99da9cf692a0a0f84f2665a63767105136ccf Mon Sep 17 00:00:00 2001 From: yabause Date: Tue, 28 Apr 2009 19:25:04 +0000 Subject: [PATCH] Removed -Wswitch-enum from --enable-hardcore. -Wall already turn on -Wswitch that reports missing enum in a switch case. The only difference is that -Wswitch-enum report them even if there's a default case. I don't think we want to handle each 322 cases of the SDLkey enum :) --- desmume/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/configure.ac b/desmume/configure.ac index 79904cc70..e0986136e 100644 --- a/desmume/configure.ac +++ b/desmume/configure.ac @@ -208,7 +208,7 @@ if test "x[$]ENABLE_HARDCORE" = "x1"; then dnl - only valid for C with newer gcc's CPPFLAGS="[$]CPPFLAGS -Wmissing-prototypes" fi - CPPFLAGS="[$]CPPFLAGS -Wall -Wextra -D_FORTIFY_SOURCE=2 -Wno-missing-field-initializers -Wpointer-arith -Wcast-align -Wwrite-strings -Wno-unused-parameter -Wmissing-declarations -Wundef -Wmissing-noreturn -Wshadow -Wredundant-decls -Wformat-nonliteral -Wformat-security -Wswitch-enum -Winit-self" + CPPFLAGS="[$]CPPFLAGS -Wall -Wextra -D_FORTIFY_SOURCE=2 -Wno-missing-field-initializers -Wpointer-arith -Wcast-align -Wwrite-strings -Wno-unused-parameter -Wmissing-declarations -Wundef -Wmissing-noreturn -Wshadow -Wredundant-decls -Wformat-nonliteral -Wformat-security -Winit-self" fi dnl - Enable debug mode