]> git.mdlowis.com Git - projs/tide.git/commitdiff
added -Werror flag to build options
authorMichael D. Lowis <mike.lowis@gentex.com>
Mon, 10 Dec 2018 20:25:20 +0000 (15:25 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Mon, 10 Dec 2018 20:25:20 +0000 (15:25 -0500)
config.mk

index 835c8f51222bd1ac8a55bee4ec92a95900242d7a..dde9951dd29eba143945ec75b005252f25a6668b 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -21,6 +21,7 @@ CC = cc
 CFLAGS  = -g --std=c99 -MMD $(INCS)
 CFLAGS += -Wall -Wextra
 CFLAGS += -Wno-unused-function
+CFLAGS += -Werror
 
 # Linker Setup
 LD = $(CC)
@@ -32,16 +33,10 @@ ARFLAGS = rcs
 
 # Set the variables below or set them on the command line to enable the
 # corresponding feature
-WERROR = 0
 DEBUG  = 0
 GPROF  = 0
 GCOV   = 0
 
-# Treat all warnings as errors (poor man's lint?)
-ifeq ($(WERROR), 1)
-       CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter
-endif
-
 # GCC Debugging
 ifeq ($(DEBUG), 1)
     CFLAGS  += -g -O0
@@ -59,16 +54,3 @@ ifeq ($(GCOV), 1)
     CFLAGS  += --coverage
     LDFLAGS += --coverage
 endif
-
-# Clang Analyzers
-ifeq ($(ANALYZERS), 1)
-    CFLAGS  += --analyze -Xanalyzer -analyzer-output=text
-    LDFLAGS += --analyze -Xanalyzer -analyzer-output=text
-endif
-
-# Clang Sanitizers
-ifeq ($(SANITIZERS), 1)
-    CFLAGS  += -fsanitize=address,dataflow,undefined -flto
-    LDFLAGS += -fsanitize=address,dataflow,undefined -flto
-endif
-