From 069c7b1e02b5eda7185ed2fc7a4a634649160a65 Mon Sep 17 00:00:00 2001 From: "Thomas \"Cakeisalie5\" Touhey" Date: Thu, 5 Jan 2017 23:08:46 +0100 Subject: [PATCH] Added maintainer mode --- Makefile.vars | 9 ++++++++- configure | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile.vars b/Makefile.vars index fbf4147..b04b1c9 100755 --- a/Makefile.vars +++ b/Makefile.vars @@ -53,7 +53,14 @@ # C Compiler CC := $(TARGET)gcc # - Check flags (enable warnings) - CWARN := -Wall -Wextra + CWARN := -Wall -Wextra -Wno-unused-macros -Wno-vla +# - Maintainer flags +ifdef MORE_WARNINGS + CWERROR := shadow write-strings redundant-decls format format-nonliteral \ + format-security implicit-function-declaration \ + date-time missing-prototypes return-type pointer-arith + CWARN += $(CWERROR:%=-W%) -Wstack-protector -Wno-unused-parameter +endif # - More flags (profiling, ...) #CMOREFLAGS := # - All C Compiler flags diff --git a/configure b/configure index 0795e3b..de9a906 100755 --- a/configure +++ b/configure @@ -15,6 +15,7 @@ target="" # Make options make_full_log= +more_warnings= # Build options default_zoom=8 @@ -43,6 +44,7 @@ General options: --help display this help and exit --version display version information and quit --make-full-log display full commands while making + --maintainer enable maintainer mode Build options: --target=TARGET the build target [$target] @@ -98,6 +100,7 @@ esac; done for arg ; do case "$arg" in --make-full-log) make_full_log=yes ;; --target=*) target="${arg#*=}" ;; +--maintainer) more_warnings=yes ;; --default-zoom=*) zoom="${arg#*=}" if ! [ $zoom -eq $zoom 2>/dev/null ]; then @@ -143,6 +146,7 @@ cat <