]> Savannah Git Hosting - gnulib.git/commitdiff
manywarnings: omit -Wswitch-default
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 Jul 2018 14:08:32 +0000 (07:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 Jul 2018 14:09:08 +0000 (07:09 -0700)
This should make things more consistent, as we already ignore
-Wswitch-enum.  Problem reported by Reuben Thomas; see:
https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
* build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
Add -Wswitch-default.
* m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
Remove -Wswitch-default.

ChangeLog
build-aux/g++-warning.spec
build-aux/gcc-warning.spec
m4/manywarnings-c++.m4
m4/manywarnings.m4

index 4e9f4416139354c9a292ef80490104c712b723a5..5f3ab00cc92e0a57fc25c44a21058225ac0f3c1d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
 
+       manywarnings: omit -Wswitch-default
+       This should make things more consistent, as we already ignore
+       -Wswitch-enum.  Problem reported by Reuben Thomas; see:
+       https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
+       * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
+       Add -Wswitch-default.
+       * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
+       * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
+       Remove -Wswitch-default.
+
        regex: revert most trimming
        Problems reported by Bruno Haible in:
        https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
index ae3e86676dbde3514bfcc0382bfaf282c6911839..99ef3c8a8dc40d2460619511e768eb022add3212 100644 (file)
@@ -82,6 +82,7 @@
 -Wstrict-prototypes                    c
 -Wstrict-selector-match                        objc and objc++
 -Wsurprising                           fortran
+-Wswitch-default                       https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
 -Wswitch-enum                          FIXME maybe? borderline.  some will want this
 -Wsynth                                        deprecated
 -Wtabs                                 fortran
index c47298e93cc5246924fd1ef941ba6db7653713eb..8c0a3dc7503d09bcffc7164cadb94ba84fe185ff 100644 (file)
 -Wsubobject-linkage                    c++ and objc++
 -Wsuggest-override                     c++ and objc++
 -Wsurprising                           fortran
+-Wswitch-default                       https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
 -Wswitch-enum                          FIXME maybe? borderline.  some will want this
 -Wsynth                                        deprecated
 -Wtabs                                 fortran
index 3a4797d82a757a577e7c912488cc10fe941f8234..28d9aa0d48c9cc2288e9c0ebd23f0af6a323e7fc 100644 (file)
@@ -1,4 +1,4 @@
-# manywarnings-c++.m4 serial 1
+# manywarnings-c++.m4 serial 2
 dnl Copyright (C) 2008-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -180,7 +180,6 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC_CXX_IMPL],
     -Wsuggest-override \
     -Wswitch \
     -Wswitch-bool \
-    -Wswitch-default \
     -Wsync-nand \
     -Wsystem-headers \
     -Wtrampolines \
index 925c40e139afc6fb9e5c265213461b5a8606a90c..516c5874765804f7a60a74f2bdbf2314e4ed2e72 100644 (file)
@@ -1,4 +1,4 @@
-# manywarnings.m4 serial 15
+# manywarnings.m4 serial 16
 dnl Copyright (C) 2008-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -239,7 +239,6 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)],
     -Wsuggest-final-types \
     -Wswitch \
     -Wswitch-bool \
-    -Wswitch-default \
     -Wswitch-unreachable \
     -Wsync-nand \
     -Wsystem-headers \