Mercurial > gnulib
changeset 39721:853940c18526
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.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 25 Jun 2018 21:04:11 +0200 |
parents | ecb8424f7d3e |
children | f7fc45eece35 |
files | ChangeLog build-aux/gcc-warning.spec m4/manywarnings.m4 |
diffstat | 3 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Jun 25 08:28:12 2018 -0700 +++ b/ChangeLog Mon Jun 25 21:04:11 2018 +0200 @@ -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
--- a/build-aux/gcc-warning.spec Mon Jun 25 08:28:12 2018 -0700 +++ b/build-aux/gcc-warning.spec Mon Jun 25 21:04:11 2018 +0200 @@ -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
--- a/m4/manywarnings.m4 Mon Jun 25 08:28:12 2018 -0700 +++ b/m4/manywarnings.m4 Mon Jun 25 21:04:11 2018 +0200 @@ -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 @@ # 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 @@ -Wint-to-pointer-cast \ -Winvalid-memory-model \ -Winvalid-pch \ - -Wjump-misses-init \ -Wlogical-not-parentheses \ -Wlogical-op \ -Wmain \