From: Torbjorn Tyridal Date: Tue, 20 Jun 2017 19:51:28 +0000 (+0200) Subject: make: Enable more warnings X-Git-Tag: v1.6~34^2~3 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=cffef594ce1656deb5c7d49992028f583f56f22e;p=sx%2Fsimavr.git make: Enable more warnings --- diff --git a/Makefile.common b/Makefile.common index 751e601..aa89f68 100644 --- a/Makefile.common +++ b/Makefile.common @@ -39,7 +39,9 @@ SIMAVR := ${shell for p in . .. ../.. ../../..;do test -d $$p/simavr/sim && ech # get the first character of what the compiler says it is, unless it's 'x86_64' doh ARCH := ${shell $(CC) -dumpmachine | sed -e 's/^x/i/' -e 's/\(.\).*/\1/'} -CFLAGS += -O2 -Wall +CFLAGS += -O2 -Wall -Wextra -Werror -Wno-unused-parameter \ + -Wno-unused-result -Wno-missing-field-initializers \ + -Wno-sign-compare CFLAGS += -g CORE_CFLAGS = -nostdinc -DAVR_CORE=1