manywarnings: Don't enable -Wjump-misses-init warnings by default.
authorBruno Haible <bruno@clisp.org>
Mon, 25 Jun 2018 19:04:11 +0000 (21:04 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 25 Jun 2018 19:05:36 +0000 (21:05 +0200)
* build-aux/gcc-warning.spec: Add -Wjump-misses-init.
* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
-Wjump-misses-init.

ChangeLog
build-aux/gcc-warning.spec
m4/manywarnings.m4

index 6104259179f890311923ee923829984d1f3862af..40abb3fce38134265b860c011787c2dda1220d9e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-06-25  Bruno Haible  <bruno@clisp.org>
+
+       manywarnings: Don't enable -Wjump-misses-init warnings by default.
+       * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
+       * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
+       -Wjump-misses-init.
+
 2018-06-25  Jim Meyering  <meyering@fb.com>
 
        acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
index e2625ea9d79fef5c5a5993ecc38a059a90a20416..c47298e93cc5246924fd1ef941ba6db7653713eb 100644 (file)
@@ -18,7 +18,7 @@
 -Warray-bounds=<0,2>                   handled specially by gl_MANYWARN_ALL_GCC
 -Warray-temporaries                    fortran
 -Wassign-intercept                     objc/objc++
--Wc++-compat                           FIXME maybe? borderline.  some will want this
+-Wc++-compat                           only useful for code meant to be compiled by a C++ compiler
 -Wc++0x-compat                         c++
 -Wc++11-compat                         c++
 -Wc++14-compat                         c++
@@ -65,6 +65,7 @@
 -Wintrinsic-shadow                     fortran
 -Wintrinsics-std                       fortran
 -Winvalid-offsetof                     c++ and objc++
+-Wjump-misses-init                     only useful for code meant to be compiled by a C++ compiler
 -Wlarger-than-                         gcc --help=warnings artifact
 -Wlarger-than=<number>                 FIXME: choose something sane?
 -Wline-truncation                      fortran
index 350c1355d8d545634f587f45255a69be3d729903..925c40e139afc6fb9e5c265213461b5a8606a90c 100644 (file)
@@ -1,4 +1,4 @@
-# manywarnings.m4 serial 14
+# manywarnings.m4 serial 15
 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,
@@ -108,7 +108,7 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)],
   # comm -3 \
   #  <((sed -n 's/^  *\(-[^ 0-9][^ ]*\) .*/\1/p' manywarnings.m4; \
   #     awk '/^[^#]/ {print $1}' ../build-aux/gcc-warning.spec) | sort) \
-  #  <(gcc --help=warnings | sed -n 's/^  \(-[^ ]*\) .*/\1/p' | sort)
+  #  <(LC_ALL=C gcc --help=warnings | sed -n 's/^  \(-[^ ]*\) .*/\1/p' | sort)
 
   gl_manywarn_set=
   for gl_manywarn_item in -fno-common \
@@ -174,7 +174,6 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)],
     -Wint-to-pointer-cast \
     -Winvalid-memory-model \
     -Winvalid-pch \
-    -Wjump-misses-init \
     -Wlogical-not-parentheses \
     -Wlogical-op \
     -Wmain \