summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-02-15 13:48:39 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-02-17 17:51:58 +0100
commit90190ad2a9fef0a145646dfb4b822997fd0e686e (patch)
treee1ded5b2225c95c8ae3f5121d0a91dc3fbcf240d
parentd40c161566ba2fcf91dcb540f635174e374ca579 (diff)
downloadsparse-90190ad2a9fef0a145646dfb4b822997fd0e686e.tar.gz
build: always use '-Wall -Wwrite-strings'
Currently, these options are in the configurable part of CFLAGS, like '-O2' or '-g', but since they're just warnings they can be moved to the non-optional flags. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0ad2b19b..e5898d9d 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,6 @@ OS = linux
CC = gcc
CFLAGS = -O2 -g
-CFLAGS += -Wall -Wwrite-strings
LD = $(CC)
AR = ar
PKG_CONFIG = pkg-config
@@ -91,6 +90,7 @@ all:
# common flags/options/...
cflags = -fno-strict-aliasing
+cflags += -Wall -Wwrite-strings
GCC_BASE := $(shell $(CC) --print-file-name=)
cflags += -DGCC_BASE=\"$(GCC_BASE)\"