From: Mattias EngdegÄrd Date: Wed, 20 Sep 2023 09:22:17 +0000 (+0200) Subject: Re-enable -Wswitch when building with Clang X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f0794ac9cafb8354119ef0052c67f092ed059eb4;p=emacs.git Re-enable -Wswitch when building with Clang * configure.ac (WERROR_CFLAGS): Remove -Wno-switch, inserted a decade ago but doesn't seem to be needed now. Please tell me if you observe otherwise. --- diff --git a/configure.ac b/configure.ac index 7ca75be996d..855c4ec7df1 100644 --- a/configure.ac +++ b/configure.ac @@ -1713,7 +1713,6 @@ AS_IF([test $gl_gcc_warnings = no], AS_IF([test "$emacs_cv_clang" = yes], [ # Turn off some warnings if supported. - gl_WARN_ADD([-Wno-switch]) gl_WARN_ADD([-Wno-pointer-sign]) gl_WARN_ADD([-Wno-string-plus-int]) gl_WARN_ADD([-Wno-unknown-attributes])