[dm-devel] [PATCH 15/15] Makefile.inc: Enable -Wextra and -Wformat-nonliteral
Bart Van Assche
bart.vanassche at sandisk.com
Tue Oct 4 17:42:21 UTC 2016
Instead of selecting some of the options enabled by -Wextra, enable
-Wextra and disable some of the options enabled by -Wextra. Enable
-Wformat-nonliteral.
Signed-off-by: Bart Van Assche <bart.vanassche at sandisk.com>
---
Makefile.inc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile.inc b/Makefile.inc
index 376f00a..be6b2bc 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -61,8 +61,10 @@ RM = rm -f
LN = ln -sf
INSTALL_PROGRAM = install
-OPTFLAGS = -Wunused -Wstrict-prototypes -O2 -g -pipe -Wformat-security -Wall \
- -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4
+OPTFLAGS = -O2 -g -pipe -Wall -Wextra -Wformat=2 \
+ -Wno-sign-compare -Wno-unused-parameter -Wno-clobbered\
+ -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector \
+ --param=ssp-buffer-size=4
CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\"
SHARED_FLAGS = -shared
--
2.10.0
More information about the dm-devel
mailing list