From 635014b74dd1ea165cfd8bdb6fcda9e8af0ed411 Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Thu, 6 Nov 2014 21:54:49 -0700 Subject: [PATCH] On Clang, error on implicit function declaration by default. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b2ba8126..192ab2db 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ .POSIX: -REALCFLAGS = ${CFLAGS} -Wall -Iinclude -Iinclude/asm/gameboy -g -std=c99 \ - -D_POSIX_C_SOURCE=200112L +WARNFLAGS = -Wall -Werror=implicit-int +REALCFLAGS = ${CFLAGS} ${WARNFLAGS} -Iinclude -Iinclude/asm/gameboy -g \ + -std=c99 -D_POSIX_C_SOURCE=200112L # User-defined variables PREFIX = /usr/local