diff options
author | Paul Smith <psmith@nuodb.com> | 2018-07-01 15:45:46 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2018-07-02 07:54:07 -0400 |
commit | 1dfd55ca36b11d154607ea29ca050085e58b60e5 (patch) | |
tree | 82979327ed61d79d03537ccfb1bc6057f9ea8980 /maintMakefile | |
parent | 0bc699a7610596827962076f122e2ba5a97cfec3 (diff) | |
download | make-git-1dfd55ca36b11d154607ea29ca050085e58b60e5.tar.gz |
* maintMakefile: Preserve comments during compilation
Diffstat (limited to 'maintMakefile')
-rw-r--r-- | maintMakefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/maintMakefile b/maintMakefile index 5d6a7632..d4716080 100644 --- a/maintMakefile +++ b/maintMakefile @@ -27,9 +27,11 @@ GNUWEBDIR ?= $(SRCROOTDIR)/gnu-www MAKEWEBDIR ?= $(SRCROOTDIR)/make/make-web # We like mondo-warnings! -AM_CFLAGS += -Wall -Wextra -Werror -Wwrite-strings -Wshadow -Wpointer-arith \ +# Also force comments to be preserved. This helps when using ccache, in +# combination with GCC 7's implicit-fallthrough warning. +AM_CFLAGS += -C -Wall -Wextra -Werror -Wwrite-strings -Wshadow \ -Wdeclaration-after-statement -Wbad-function-cast -Wformat-security \ - -Wtype-limits -Wunused-but-set-parameter -Wlogical-op \ + -Wtype-limits -Wunused-but-set-parameter -Wlogical-op -Wpointer-arith \ -Wignored-qualifiers -Wformat-signedness -Wduplicated-cond # Unfortunately the Guile headers are sometimes broken. Convince GCC @@ -39,9 +41,6 @@ GUILE_CFLAGS := $(patsubst -I%,-isystem %,$(GUILE_CFLAGS)) MAKE_MAINTAINER_MODE := -DMAKE_MAINTAINER_MODE AM_CPPFLAGS += $(MAKE_MAINTAINER_MODE) -# I want this one but I have to wait for the const cleanup! -# -Wwrite-strings - TEMPLATES = README README.DOS README.W32 README.OS2 \ src/config.ami src/configh.dos src/config.h.W32 src/config.h-vms |