ref: 635014b74dd1ea165cfd8bdb6fcda9e8af0ed411
parent: 7ad634febd199d4004de98e81854fcbc6001de1a
author: Anthony J. Bentley <[email protected]>
date: Thu Nov 6 16:54:49 EST 2014
On Clang, error on implicit function declaration by default.
--- 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