Add C89_BUILD flag that makes the compiler throw about 30000 errors.

This commit is contained in:
Alcaro 2015-06-26 15:43:45 +02:00
parent 608582103b
commit 2b1c52858d
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,11 @@ else
CFLAGS += -std=gnu99 -D_GNU_SOURCE
endif
endif
ifneq ($(C89_BUILD)$(C90_BUILD),)
#looks kinda ugly, but it makes both C89_BUILD and C90_BUILD work and refer to the same thing
CFLAGS += -std=c89 -ansi -pedantic -Werror=pedantic
endif
endif
ifeq ($(NOUNUSED), yes)