diff options
| author | Ahmad Fatoum <[email protected]> | 2018-01-25 22:34:29 +0100 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-01-25 22:34:29 +0100 |
| commit | 8be93762d9a94a56bf430e0e177bdefb5b1fa0dd (patch) | |
| tree | e04cef8d633f2bbf453ac4069424effe25988fea /src | |
| parent | c2ec88f93015f688905a0a35b64cc7c29daef223 (diff) | |
| download | raylib-8be93762d9a94a56bf430e0e177bdefb5b1fa0dd.tar.gz raylib-8be93762d9a94a56bf430e0e177bdefb5b1fa0dd.zip | |
Make function calls without prior declaration an error
which is the default behavior on C99 and up.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 3 |
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 |
