]> git.eshelyaron.com Git - emacs.git/commitdiff
Re-enable -Wswitch when building with Clang
authorMattias Engdegård <mattiase@acm.org>
Wed, 20 Sep 2023 09:22:17 +0000 (11:22 +0200)
committerMattias Engdegård <mattiase@acm.org>
Wed, 20 Sep 2023 09:30:31 +0000 (11:30 +0200)
* 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.

configure.ac

index 7ca75be996d2267f3fdf4309dc1fd7b107e88106..855c4ec7df1668700ae6253e7c84cb115195d6b7 100644 (file)
@@ -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])