diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-02-15 13:48:39 +0100 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2019-02-17 17:51:58 +0100 |
commit | 90190ad2a9fef0a145646dfb4b822997fd0e686e (patch) | |
tree | e1ded5b2225c95c8ae3f5121d0a91dc3fbcf240d | |
parent | d40c161566ba2fcf91dcb540f635174e374ca579 (diff) | |
download | sparse-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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)\" |