diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-05-15 23:21:29 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-05-15 23:21:53 -0700 |
commit | 564705d7d91357cfbe0057f0f27a66fd8a30f0bc (patch) | |
tree | fb016dbb905dd09989a4a4371209a8fde9e42217 | |
parent | 0aa13f82eec6df408173dc24df9f05e6f785202f (diff) | |
download | gnulib-564705d7d91357cfbe0057f0f27a66fd8a30f0bc.tar.gz |
manywarnings: update for GCC 4.8.0
* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
are new to GCC 4.8. Remove -Wformat=2, -Wmissing-format-attribute,
-Wmissing-noreturn, as they are duplicates of other warnings.
Remove -Wunreachable-code, as it is removed in GCC 4.8 and
was documented to be flaky in earlier versions of GCC.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | m4/manywarnings.m4 | 6 |
2 files changed, 10 insertions, 4 deletions
@@ -1,5 +1,13 @@ 2013-05-15 Paul Eggert <eggert@cs.ucla.edu> + manywarnings: update for GCC 4.8.0 + * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): + Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which + are new to GCC 4.8. Remove -Wformat=2, -Wmissing-format-attribute, + -Wmissing-noreturn, as they are duplicates of other warnings. + Remove -Wunreachable-code, as it is removed in GCC 4.8 and + was documented to be flaky in earlier versions of GCC. + spawn-tests, sys_socket-tests, sys_wait-tests: port to clang * tests/test-spawn.c (main): * tests/test-sys_socket.c (main): diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 index 45a30afda7..be6d4c91c5 100644 --- a/m4/manywarnings.m4 +++ b/m4/manywarnings.m4 @@ -98,6 +98,7 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], -W \ -Wabi \ -Waddress \ + -Waggressive-loop-optimizations \ -Wall \ -Warray-bounds \ -Wattributes \ @@ -125,7 +126,6 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], -Wformat-security \ -Wformat-y2k \ -Wformat-zero-length \ - -Wformat=2 \ -Wfree-nonheap-object \ -Wignored-qualifiers \ -Wimplicit \ @@ -143,9 +143,7 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], -Wmissing-braces \ -Wmissing-declarations \ -Wmissing-field-initializers \ - -Wmissing-format-attribute \ -Wmissing-include-dirs \ - -Wmissing-noreturn \ -Wmissing-parameter-type \ -Wmissing-prototypes \ -Wmudflap \ @@ -166,6 +164,7 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], -Wpointer-sign \ -Wpointer-to-int-cast \ -Wpragmas \ + -Wreturn-local-addr \ -Wreturn-type \ -Wsequence-point \ -Wshadow \ @@ -187,7 +186,6 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], -Wtype-limits \ -Wuninitialized \ -Wunknown-pragmas \ - -Wunreachable-code \ -Wunsafe-loop-optimizations \ -Wunused \ -Wunused-but-set-parameter \ |