diff options
author | Simon Josefsson <simon@josefsson.org> | 2011-11-20 22:55:32 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2011-11-20 22:55:32 +0100 |
commit | 0f631659630ac4095a7acc3052f83726d667bcc1 (patch) | |
tree | 0e3f8fe35932e368831bfc4f1529ce4cffea75cd | |
parent | 1241f93fbbe39a1cef42d51e2e59913adbf48996 (diff) | |
download | libtasn1-0f631659630ac4095a7acc3052f83726d667bcc1.tar.gz libtasn1-0f631659630ac4095a7acc3052f83726d667bcc1.tar.bz2 libtasn1-0f631659630ac4095a7acc3052f83726d667bcc1.zip |
Update manywarnings again.
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | gl/m4/manywarnings.m4 | 76 |
2 files changed, 16 insertions, 61 deletions
diff --git a/configure.ac b/configure.ac index 969755b..a6eec1f 100644 --- a/configure.ac +++ b/configure.ac @@ -84,6 +84,7 @@ if test "$gl_gcc_warnings" = yes; then nw="$nw -Wunused-macros" # Breaks on bison generated ASN1.c nw="$nw -Wunsafe-loop-optimizations" nw="$nw -Wstrict-overflow" + nw="$nw -Wsuggest-attribute=pure" # Is it worth using pure attributes? gl_MANYWARN_ALL_GCC([ws]) gl_MANYWARN_COMPLEMENT(ws, [$ws], [$nw]) diff --git a/gl/m4/manywarnings.m4 b/gl/m4/manywarnings.m4 index 9788ebf..d3a8b9e 100644 --- a/gl/m4/manywarnings.m4 +++ b/gl/m4/manywarnings.m4 @@ -135,31 +135,33 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], -Wmudflap \ -Wpacked-bitfield-compat \ -Wsync-nand \ + ; do + gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" + done + # The following are not documented in the manual but are included in + # output from gcc --help=warnings. + for gl_manywarn_item in \ + -Wattributes \ + -Wcoverage-mismatch \ + -Wmultichar \ + -Wunused-macros \ + ; do + gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" + done + # More warnings from gcc 4.6.2 --help=warnings. + for gl_manywarn_item in \ -Wabi \ -Waddress \ - -Waliasing \ - -Walign-commons \ - -Wampersand \ -Warray-bounds \ - -Warray-temporaries \ - -Wassign-intercept \ - -Wattributes \ - -Wc++0x-compat \ -Wchar-subscripts \ - -Wcharacter-truncation \ -Wclobbered \ -Wcomment \ -Wcomments \ - -Wconversion-extra \ - -Wconversion-null \ - -Wcoverage-mismatch \ -Wcpp \ - -Wctor-dtor-privacy \ -Wdeprecated \ -Wdeprecated-declarations \ -Wdiv-by-zero \ -Wdouble-promotion \ - -Weffc++ \ -Wempty-body \ -Wendif-labels \ -Wenum-compare \ @@ -174,82 +176,34 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], -Wimplicit \ -Wimplicit-function-declaration \ -Wimplicit-int \ - -Wimplicit-interface \ - -Wimplicit-procedure \ -Wint-to-pointer-cast \ - -Wintrinsic-shadow \ - -Wintrinsics-std \ - -Winvalid-offsetof \ -Wjump-misses-init \ - -Wline-truncation \ -Wmain \ -Wmissing-braces \ - -Wmissing-field-initializers \ -Wmissing-parameter-type \ -Wmultichar \ - -Wnoexcept \ - -Wnon-template-friend \ - -Wnon-virtual-dtor \ -Wnonnull \ -Wnormalized=nfc \ - -Wold-style-cast \ -Wold-style-declaration \ -Woverflow \ - -Woverloaded-virtual \ -Woverride-init \ -Wparentheses \ - -Wpmf-conversions \ -Wpointer-sign \ -Wpointer-to-int-cast \ -Wpragmas \ - -Wproperty-assign-default \ - -Wprotocol \ - -Wreal-q-constant \ - -Wreorder \ -Wreturn-type \ - -Wselector \ -Wsequence-point \ -Wsign-compare \ - -Wsign-promo \ - -Wstrict-null-sentinel \ - -Wstrict-overflow=5 \ - -Wstrict-selector-match \ -Wsuggest-attribute=const \ -Wsuggest-attribute=noreturn \ -Wsuggest-attribute=pure \ - -Wsurprising \ -Wswitch \ - -Wsynth \ - -Wtabs \ -Wtrampolines \ -Wtrigraphs \ -Wtype-limits \ - -Wundeclared-selector \ - -Wunderflow \ -Wuninitialized \ -Wunsuffixed-float-constants \ - -Wunused-but-set-parameter \ - -Wunused-but-set-variable \ - -Wunused-dummy-argument \ - -Wunused-function \ - -Wunused-label \ - -Wunused-macros \ - -Wunused-parameter \ - -Wunused-result \ - -Wunused-value \ - -Wunused-variable \ -Wvariadic-macros \ - -frequire-return-statement \ - ; do - gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" - done - # The following are not documented in the manual but are included in - # output from gcc --help=warnings. - for gl_manywarn_item in \ - -Wattributes \ - -Wcoverage-mismatch \ - -Wmultichar \ - -Wunused-macros \ ; do gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" done |