From 2b1c52858d489fc9c2e2cf76e7a20c8d775d704a Mon Sep 17 00:00:00 2001 From: Alcaro Date: Fri, 26 Jun 2015 15:43:45 +0200 Subject: [PATCH] Add C89_BUILD flag that makes the compiler throw about 30000 errors. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index c27edef6ed..87cf109705 100644 --- a/Makefile +++ b/Makefile @@ -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)