]> mj.ucw.cz Git - home-hw.git/commitdiff
Makefiles: gnu99, no silly parenthesis warning
authorMartin Mares <mj@ucw.cz>
Tue, 16 Jul 2019 16:27:24 +0000 (18:27 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 16 Jul 2019 16:27:24 +0000 (18:27 +0200)
mk/bluepill.mk

index bce93a30ddb46501a61f88e195d81fe75968ce05..0ceab7de95b12144572407879ce7e2c9a419e42c 100644 (file)
@@ -56,12 +56,12 @@ OBJDUMP             := $(PREFIX)-objdump
 GDB            := $(PREFIX)-gdb
 OPT            := -Os
 DEBUG          := -ggdb3
-CSTD           ?= -std=c99
+CSTD           ?= -std=gnu99
 
 TGT_CFLAGS     += $(OPT) $(CSTD) $(DEBUG)
 TGT_CFLAGS     += $(ARCH_FLAGS)
 TGT_CFLAGS     += -Wall -Wextra -Wshadow -Wimplicit-function-declaration
-TGT_CFLAGS     += -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes
+TGT_CFLAGS     += -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes -Wno-parentheses
 TGT_CFLAGS     += -fno-common -ffunction-sections -fdata-sections
 TGT_CFLAGS     += -I. -I../lib