Commit bbe7c77b authored by Dean Camera's avatar Dean Camera
Browse files

Update ModuleTest build test to use as many compile warnings as possible. Set...

Update ModuleTest build test to use as many compile warnings as possible. Set -Werror so that any generated warnings produce an error.
parent 0e4ece1d
...@@ -220,16 +220,35 @@ CFLAGS += -fpack-struct ...@@ -220,16 +220,35 @@ CFLAGS += -fpack-struct
CFLAGS += -fshort-enums CFLAGS += -fshort-enums
CFLAGS += -fno-strict-aliasing CFLAGS += -fno-strict-aliasing
CFLAGS += -fno-split-wide-types CFLAGS += -fno-split-wide-types
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
#CFLAGS += -mshort-calls
#CFLAGS += -fno-unit-at-a-time
#CFLAGS += -Wundef
#CFLAGS += -Wunreachable-code
#CFLAGS += -Wsign-compare
CFLAGS += -Wa,-adhlns=$(<:%.c=$(OBJDIR)/%.lst) CFLAGS += -Wa,-adhlns=$(<:%.c=$(OBJDIR)/%.lst)
CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
CFLAGS += $(CSTANDARD) CFLAGS += $(CSTANDARD)
CFLAGS += -Werror
CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wformat=2
CFLAGS += -Winit-self
CFLAGS += -Wswitch-enum
CFLAGS += -Wunused
CFLAGS += -Wundef
CFLAGS += -Wpointer-arith
CFLAGS += -Wcast-align
CFLAGS += -Wwrite-strings
CFLAGS += -Wlogical-op
CFLAGS += -Wmissing-parameter-type
CFLAGS += -Wmissing-declarations
CFLAGS += -Wmissing-field-initializers
CFLAGS += -Wmissing-format-attribute
CFLAGS += -Wredundant-decls
CFLAGS += -Wnested-externs
CFLAGS += -Woverlength-strings
#CFLAGS += -Wswitch-default
#CFLAGS += -Wc++-compat
#CFLAGS += -Wcast-qual
#CFLAGS += -Wconversion
#CFLAGS += -Wjump-misses-init
#CFLAGS += -pedantic
#---------------- Compiler Options C++ ---------------- #---------------- Compiler Options C++ ----------------
...@@ -249,14 +268,8 @@ CPPFLAGS += -fshort-enums ...@@ -249,14 +268,8 @@ CPPFLAGS += -fshort-enums
CPPFLAGS += -fno-exceptions CPPFLAGS += -fno-exceptions
CPPFLAGS += -Wall CPPFLAGS += -Wall
CPPFLAGS += -Wundef CPPFLAGS += -Wundef
#CPPFLAGS += -mshort-calls
#CPPFLAGS += -fno-unit-at-a-time
#CPPFLAGS += -Wstrict-prototypes
#CPPFLAGS += -Wunreachable-code
#CPPFLAGS += -Wsign-compare
CPPFLAGS += -Wa,-adhlns=$(<:%.cpp=$(OBJDIR)/%.lst) CPPFLAGS += -Wa,-adhlns=$(<:%.cpp=$(OBJDIR)/%.lst)
CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
#CPPFLAGS += $(CSTANDARD)
#---------------- Assembler Options ---------------- #---------------- Assembler Options ----------------
......
...@@ -186,12 +186,36 @@ CFLAGS += -funsigned-char ...@@ -186,12 +186,36 @@ CFLAGS += -funsigned-char
CFLAGS += -funsigned-bitfields CFLAGS += -funsigned-bitfields
CFLAGS += -ffunction-sections CFLAGS += -ffunction-sections
CFLAGS += -fno-strict-aliasing CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -masm-addr-pseudos CFLAGS += -masm-addr-pseudos
CFLAGS += -Wa,-adhlns=$(<:%.c=$(OBJDIR)/%.lst) CFLAGS += -Wa,-adhlns=$(<:%.c=$(OBJDIR)/%.lst)
CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
CFLAGS += $(CSTANDARD) CFLAGS += $(CSTANDARD)
CFLAGS += -Werror
CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wformat=2
CFLAGS += -Winit-self
CFLAGS += -Wswitch-enum
CFLAGS += -Wunused
CFLAGS += -Wundef
CFLAGS += -Wpointer-arith
#CFLAGS += -Wcast-align
CFLAGS += -Wwrite-strings
CFLAGS += -Wlogical-op
CFLAGS += -Wmissing-parameter-type
CFLAGS += -Wmissing-declarations
CFLAGS += -Wmissing-field-initializers
CFLAGS += -Wmissing-format-attribute
#CFLAGS += -Wredundant-decls
CFLAGS += -Wnested-externs
CFLAGS += -Woverlength-strings
#CFLAGS += -Wswitch-default
#CFLAGS += -Wc++-compat
#CFLAGS += -Wcast-qual
#CFLAGS += -Wconversion
#CFLAGS += -Wjump-misses-init
#CFLAGS += -pedantic
#---------------- Compiler Options C++ ---------------- #---------------- Compiler Options C++ ----------------
......
...@@ -209,11 +209,35 @@ CFLAGS += -fno-inline-small-functions ...@@ -209,11 +209,35 @@ CFLAGS += -fno-inline-small-functions
CFLAGS += -fpack-struct CFLAGS += -fpack-struct
CFLAGS += -fshort-enums CFLAGS += -fshort-enums
CFLAGS += -fno-strict-aliasing CFLAGS += -fno-strict-aliasing
CFLAGS += -Wall
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wa,-adhlns=$(<:%.c=$(OBJDIR)/%.lst) CFLAGS += -Wa,-adhlns=$(<:%.c=$(OBJDIR)/%.lst)
CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
CFLAGS += $(CSTANDARD) CFLAGS += $(CSTANDARD)
CFLAGS += -Werror
CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Wstrict-prototypes
CFLAGS += -Wformat=2
CFLAGS += -Winit-self
CFLAGS += -Wswitch-enum
CFLAGS += -Wunused
CFLAGS += -Wundef
CFLAGS += -Wpointer-arith
CFLAGS += -Wcast-align
CFLAGS += -Wwrite-strings
CFLAGS += -Wlogical-op
CFLAGS += -Wmissing-parameter-type
CFLAGS += -Wmissing-declarations
CFLAGS += -Wmissing-field-initializers
CFLAGS += -Wmissing-format-attribute
CFLAGS += -Wredundant-decls
CFLAGS += -Wnested-externs
CFLAGS += -Woverlength-strings
#CFLAGS += -Wswitch-default
#CFLAGS += -Wc++-compat
#CFLAGS += -Wcast-qual
#CFLAGS += -Wconversion
#CFLAGS += -Wjump-misses-init
#CFLAGS += -pedantic
#---------------- Compiler Options C++ ---------------- #---------------- Compiler Options C++ ----------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment