Commit 57a1d378 authored by Paul Eggert's avatar Paul Eggert
Browse files

Update from Gnulib

This incorporates:
2019-05-03 Port manywarnings to GCC 9
* m4/manywarnings.m4: Copy from Gnulib.
parent d0fe28cb
# manywarnings.m4 serial 17 # manywarnings.m4 serial 18
dnl Copyright (C) 2008-2019 Free Software Foundation, Inc. dnl Copyright (C) 2008-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it, dnl gives unlimited permission to copy and/or distribute it,
...@@ -112,16 +112,19 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)], ...@@ -112,16 +112,19 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)],
gl_manywarn_set= gl_manywarn_set=
for gl_manywarn_item in -fno-common \ for gl_manywarn_item in -fno-common \
-W \ -W \
-Wabsolute-value \
-Waddress \ -Waddress \
-Waddress-of-packed-member \
-Waggressive-loop-optimizations \ -Waggressive-loop-optimizations \
-Wall \ -Wall \
-Wattribute-alias \ -Wattribute-warning \
-Wattributes \ -Wattributes \
-Wbad-function-cast \ -Wbad-function-cast \
-Wbool-compare \ -Wbool-compare \
-Wbool-operation \ -Wbool-operation \
-Wbuiltin-declaration-mismatch \ -Wbuiltin-declaration-mismatch \
-Wbuiltin-macro-redefined \ -Wbuiltin-macro-redefined \
-Wcannot-profile \
-Wcast-align \ -Wcast-align \
-Wcast-align=strict \ -Wcast-align=strict \
-Wcast-function-type \ -Wcast-function-type \
...@@ -186,6 +189,7 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)], ...@@ -186,6 +189,7 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)],
-Wmissing-field-initializers \ -Wmissing-field-initializers \
-Wmissing-include-dirs \ -Wmissing-include-dirs \
-Wmissing-parameter-type \ -Wmissing-parameter-type \
-Wmissing-profile \
-Wmissing-prototypes \ -Wmissing-prototypes \
-Wmultichar \ -Wmultichar \
-Wmultistatement-macros \ -Wmultistatement-macros \
...@@ -292,6 +296,7 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)], ...@@ -292,6 +296,7 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)],
AC_MSG_RESULT([$gl_alloc_max]) AC_MSG_RESULT([$gl_alloc_max])
gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$gl_alloc_max" gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$gl_alloc_max"
gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2" gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2"
gl_manywarn_set="$gl_manywarn_set -Wattribute-alias=2"
gl_manywarn_set="$gl_manywarn_set -Wformat-overflow=2" gl_manywarn_set="$gl_manywarn_set -Wformat-overflow=2"
gl_manywarn_set="$gl_manywarn_set -Wformat-truncation=2" gl_manywarn_set="$gl_manywarn_set -Wformat-truncation=2"
gl_manywarn_set="$gl_manywarn_set -Wimplicit-fallthrough=5" gl_manywarn_set="$gl_manywarn_set -Wimplicit-fallthrough=5"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment