From c9c23d414802ed07c7638ce13d33dba3a629e887 Mon Sep 17 00:00:00 2001 From: Alasdair G Kergon Date: Thu, 24 Oct 2013 17:10:24 +0100 Subject: [PATCH] build: Use additional gcc warning flags. --- WHATS_NEW | 3 ++- make.tmpl.in | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index 71068672a..cb3488bc3 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ -Version 2.02.104 +Version 2.02.104 - =================================== + Use additional gcc warning flags by default. Add ignore_lvm_mirrors to config file to read/ignore labels on mirrors. Add internal flag for temporary LVs to properly direct udev to not interfere. Fix endless loop in blkdeactivate ... if unable to umount/deactivate. diff --git a/make.tmpl.in b/make.tmpl.in index 321875868..788eb1dcc 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -135,9 +135,15 @@ INSTALL_SCRIPT = $(INSTALL) -p $(M_INSTALL_PROGRAM) WFLAGS += -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings \ -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \ -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls \ - -Wpointer-arith + -Wpointer-arith -Wclobbered -Wempty-body -Wignored-qualifiers \ + -Wmissing-parameter-type -Wold-style-declaration -Woverride-init \ + -Wtype-limits -Wuninitialized -Wmissing-include-dirs -Wsync-nand \ + -Wfloat-equal -Wjump-misses-init -Wlogical-op -Wstrict-prototypes \ + -Wold-style-definition -Wmissing-format-attribute -#WFLAGS += -W -Wconversion -Wbad-function-cast -Wcast-qual +#WFLAGS += -W -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers +#WFLAGS += -Wsign-compare -Wunused-parameter -Wmissing-field-initializers +#WFLAGS += -Wconversion -Wbad-function-cast -Wcast-qual -Waggregate-return -Wpacked #WFLAGS += -pedantic -std=gnu99 #DEFS += -DDEBUG_CRC32