]> Savannah Git Hosting - gnulib.git/commitdiff
manywarnings: Don't enable -Wsystem-headers.
authorBruno Haible <bruno@clisp.org>
Mon, 15 Jul 2024 21:02:58 +0000 (23:02 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jul 2024 01:17:51 +0000 (03:17 +0200)
* build-aux/gcc-warning.spec: Add -Wsystem-headers.
* build-aux/g++-warning.spec: Likewise.
* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Don't enable
-Wsystem-headers.
* m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL): Likewise.

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

index a762ebe06f5ec60adf14419d017984d67bc3e025..e4616bef4a4c88fbbb611f0432ec9623087d5690 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-07-15  Bruno Haible  <bruno@clisp.org>
+
+       manywarnings: Don't enable -Wsystem-headers.
+       * build-aux/gcc-warning.spec: Add -Wsystem-headers.
+       * build-aux/g++-warning.spec: Likewise.
+       * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Don't enable
+       -Wsystem-headers.
+       * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL): Likewise.
+
 2024-07-15  Bruno Haible  <bruno@clisp.org>
 
        qcopy-acl: Fix copying of ACLs on CentOS 7 (regression 2023-01-12).
index 99ef3c8a8dc40d2460619511e768eb022add3212..2235d65e6050face89c1ce6e2a0bab598df9ed78 100644 (file)
@@ -85,6 +85,7 @@
 -Wswitch-default                       https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
 -Wswitch-enum                          FIXME maybe? borderline.  some will want this
 -Wsynth                                        deprecated
+-Wsystem-headers                       warns about system headers on macOS and #include_next in gnulib headers
 -Wtabs                                 fortran
 -Wtarget-lifetime                      fortran
 -Wtraditional-conversion               obsolescent
index e12fbe776ed9f4bc7f81ad88cf0fcd505a2caf03..53c6bef07db5896863e831791746b5f0410d9879 100644 (file)
 -Wswitch-outside-range                 default
 -Wswitch-unreachable                   default
 -Wsynth                                        deprecated
+-Wsystem-headers                       warns about system headers on macOS and #include_next in gnulib headers
 -Wtabs                                 fortran
 -Wtarget-lifetime                      fortran
 -Wtautological-compare                 enabled by -Wall
index df190674f9fd2765c6fdf5b6989f3d74a48af809..d8cf54b1cd76e42275b8b2806cfd3c937df3c891 100644 (file)
@@ -1,5 +1,5 @@
 # manywarnings-c++.m4
-# serial 4
+# serial 5
 dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -179,7 +179,6 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC_CXX_IMPL],
     -Wswitch \
     -Wswitch-bool \
     -Wsync-nand \
-    -Wsystem-headers \
     -Wtrampolines \
     -Wtrigraphs \
     -Wtype-limits \
index 14bc5041eaa87569a51cb6ad6e7a753cd8a5885d..5b0baee20577feb8af1f5b6745e9bf0f1357dae0 100644 (file)
@@ -1,5 +1,5 @@
 # manywarnings.m4
-# serial 26
+# serial 27
 dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -141,7 +141,6 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC(C)],
     -Wsuggest-final-methods \
     -Wsuggest-final-types \
     -Wsync-nand \
-    -Wsystem-headers \
     -Wtrampolines \
     -Wuninitialized \
     -Wunknown-pragmas \