From 907a5b4a4ee0183c3b3ddba266dcb603fe4cdf3b Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Sat, 24 Nov 2012 17:54:25 +0100 Subject: [PATCH] Change CFLAGS * Add -O1 to make -wuninitialized work * Remote -Wredundant-decls because it gave useless warnings Signed-off-by: Gregor Best Signed-off-by: Uli Schlachter --- awesomeConfig.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 1dac9b1e6..92b16b9c5 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -16,10 +16,10 @@ option(COMPRESS_MANPAGES "compress manpages" ON) option(GENERATE_DOC "generate API documentation" ON) # {{{ CFLAGS -add_definitions(-std=gnu99 -ggdb3 -rdynamic -fno-strict-aliasing -Wall -Wextra +add_definitions(-O1 -std=gnu99 -ggdb3 -rdynamic -fno-strict-aliasing -Wall -Wextra -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare -Wunused -Wno-unused-parameter -Wuninitialized -Winit-self - -Wpointer-arith -Wredundant-decls -Wformat-nonliteral + -Wpointer-arith -Wformat-nonliteral -Wno-format-zero-length -Wmissing-format-attribute -Wmissing-prototypes -Wstrict-prototypes) # }}}