summaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorRay <[email protected]>2018-01-26 01:17:19 +0100
committerGitHub <[email protected]>2018-01-26 01:17:19 +0100
commit779719f5dcabc170cd84e05b57ed03e9d87507d4 (patch)
treec1d248f8a5e1a1fba85978901eac5e53fda4c19c /src/Makefile
parentc2ec88f93015f688905a0a35b64cc7c29daef223 (diff)
parent520f317a7522804ff2f113f01ca69cd45d7863a5 (diff)
downloadraylib-779719f5dcabc170cd84e05b57ed03e9d87507d4.tar.gz
raylib-779719f5dcabc170cd84e05b57ed03e9d87507d4.zip
Merge pull request #440 from a3f/develop
Make function calls without prior declaration an error
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index c88aa6dd..fc85ea0a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -262,7 +262,8 @@ endif
# -Wno-missing-braces ignore invalid warning (GCC bug 53119)
# -D_DEFAULT_SOURCE use with -std=c99 on Linux and PLATFORM_WEB, required for timespec
# -Werror=pointer-arith catch unportable code that does direct arithmetic on void pointers
-CFLAGS += -O1 -Wall -std=c99 -D_DEFAULT_SOURCE -fgnu89-inline -Wno-missing-braces -Werror=pointer-arith
+# -Werror=implicit-function-declaration catch function calls without prior declaration
+CFLAGS += -O1 -Wall -std=c99 -D_DEFAULT_SOURCE -fgnu89-inline -Wno-missing-braces -Werror=pointer-arith -Werror=implicit-function-declaration
ifeq ($(RAYLIB_BUILD_MODE), DEBUG)
CFLAGS += -g