1 # manywarnings.m4 serial 1
2 dnl Copyright (C) 2008, 2009 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 dnl From Simon Josefsson
9 # gl_MANYWARN_COMPLEMENT(OUTVAR, LISTVAR, REMOVEVAR)
10 # --------------------------------------------------
11 # Copy LISTVAR to OUTVAR except for the entries in REMOVEVAR.
12 # Elements separated by whitespace. In set logic terms, the function
13 # does OUTVAR = LISTVAR \ REMOVEVAR.
14 AC_DEFUN([gl_MANYWARN_COMPLEMENT],
24 gl_warn_set="$gl_warn_set $gl_warn_item"
31 # gl_MANYWARN_ALL_GCC(VARIABLE)
32 # -----------------------------
33 # Add all documented GCC (currently as per version 4.4) warning
34 # parameters to variable VARIABLE. Note that you need to test them
35 # using gl_WARN_ADD if you want to make sure your gcc understands it.
36 AC_DEFUN([gl_MANYWARN_ALL_GCC],
39 for gl_manywarn_item in \
46 -Wmissing-include-dirs \
56 -Wtraditional-conversion \
57 -Wdeclaration-after-statement \
60 -Wunsafe-loop-optimizations \
72 -Wold-style-definition \
73 -Wmissing-prototypes \
74 -Wmissing-declarations \
76 -Wmissing-format-attribute \
86 -Wvolatile-register-var \
87 -Wdisabled-optimization \
89 -Woverlength-strings \
90 -Wbuiltin-macro-redefined \
92 -Wpacked-bitfield-compat \
95 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
97 # The following are not documented in the manual but are included in
98 # output from gcc --help=warnings.
99 for gl_manywarn_item in \
101 -Wcoverage-mismatch \
105 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"