INN commit: trunk (Makefile.global.in)

INN Commit rra at isc.org
Thu Sep 1 15:04:55 UTC 2016


    Date: Thursday, September 1, 2016 @ 08:04:55
  Author: iulius
Revision: 10056

Add missing file in previous commit

Modified:
  trunk/Makefile.global.in

--------------------+
 Makefile.global.in |   55 +--------------------------------------------------
 1 file changed, 2 insertions(+), 53 deletions(-)

Modified: Makefile.global.in
===================================================================
--- Makefile.global.in	2016-09-01 15:02:43 UTC (rev 10055)
+++ Makefile.global.in	2016-09-01 15:04:55 UTC (rev 10056)
@@ -52,60 +52,9 @@
 
 CCOUTPUT	= @CCOUTPUT@
 
-##  Warnings to use with gcc.  Default to including all of the generally
-##  useful warnings unless there's something that makes them unsuitable.  In
-##  particular, the following warnings are *not* included:
-##
-##    -ansi                 Requires messing with feature test macros.
-##    -pedantic             Too much noise from embedded Perl.
-##    -Wdouble-promotion    Too much noise from using printf with floats.
-##    -Wswitch-default      Quite annoying to enforce it.
-##    -Wstrict-overflow=2   Gives false positives.
-##    -Wtraditional         We assume ANSI C, so these aren't interesting.
-##    -Wtraditional-conversion
-##                          Warns about problems when upgrading from K&R to
-##                          ANSI C, so these aren't interesting.
-##    -Wundef               We need portability code.
-##    -Wshadow              Names like log or index are too convenient.
-##    -Wunsafe-loop-optimizations
-##                          Too much noise.
-##    -Wcast-qual           Used for a while, but some casts are unavoidable.
-##    -Wconversion          Too much unsigned to signed noise.
-##    -Waggregate-return    Syntax allowed in C.
-##    -Wmissing-noreturn    Not necessary (unless for optimization).
-##    -Wpacked              Used by INN.
-##    -Wpadded              Used by INN.
-##    -Wredundant-decls     Too much noise from system headers.
-##    -Wlong-long           Too much noise from system headers.
-##    -Woverlength-strings  Useless noise.
-##
-##  Some may be worth looking at again once a released version of gcc doesn't
-##  warn on system headers.  The warnings below are in the same order as
-##  they're listed in the gcc manual.
-##
-##  Last checked against gcc 4.7.4 (2014-06-12).
-##  Add -g because when building with warnings, one generally also wants the
-##  debugging information, and add -O2 because gcc won't find some warnings
-##  without optimization turned on.  Add -DDEBUG=1 so that we'll also
-##  compile all debugging code and check it as well.
-##  It would be worthwhile trying to enforce the following checks:
-##  -D_FORTIFY_SOURCE=2 enables warn_unused_result attribute markings
-##  on glibc functions on Linux, as well as more object size checking,
-##  which catches a few more issues.
-##  -Wswitch-enum, -Wfloat-equal, -Wlogical-op,
-##  "-Wconversion -Wno-sign-conversion",
-##  -Wunreachable-code, -Wstack-protector, -Wdeclaration-after-statement
+##  Warnings to use when building INN with "make warnings"
 
-WARNINGS	= -g -O2 -DDEBUG=1 -Werror -Wall -Wextra -Wformat=2 \
-		  -Winit-self -Wmissing-include-dirs \
-		  -Wsync-nand -Wendif-labels -Wtrampolines -Wpointer-arith \
-		  -Wbad-function-cast -Wcast-align -Wwrite-strings \
-		  -Wjump-misses-init -Wstrict-prototypes \
-		  -Wold-style-definition \
-		  -Wmissing-prototypes -Wmissing-declarations \
-		  -Wmissing-format-attribute \
-		  -Wnormalized=nfc -Wnested-externs -Winline \
-		  -Winvalid-pch -Wvla
+WARNINGS	= @CC_WARNINGS@
 
 ##  Some warnings have to be suppressed for Perl, since there's no way to work
 ##  around the Perl header problems in INN code.



More information about the inn-committers mailing list