From 8be93762d9a94a56bf430e0e177bdefb5b1fa0dd Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Thu, 25 Jan 2018 22:34:29 +0100 Subject: Make function calls without prior declaration an error which is the default behavior on C99 and up. --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3 From 03ee03e2a6caca5c1c7498a8da19a14dfec5df3c Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Thu, 25 Jan 2018 22:43:45 +0100 Subject: #include header for glInsertEventMarkerEXT on macOS --- src/rlgl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/rlgl.c b/src/rlgl.c index d325a1bd..63860f1c 100644 --- a/src/rlgl.c +++ b/src/rlgl.c @@ -74,6 +74,7 @@ #if defined(GRAPHICS_API_OPENGL_11) #if defined(__APPLE__) #include // OpenGL 1.1 library for OSX + #include #else #if defined(_MSC_VER) // Using MSVC compiler, requires some additional definitions // APIENTRY for OpenGL function pointer declarations is required @@ -101,6 +102,7 @@ #if defined(GRAPHICS_API_OPENGL_33) #if defined(__APPLE__) #include // OpenGL 3 library for OSX + #include #else #define GLAD_IMPLEMENTATION #if defined(RLGL_STANDALONE) @@ -125,6 +127,7 @@ #include "shader_distortion.h" // Distortion shader to be embedded #endif + //---------------------------------------------------------------------------------- // Defines and Macros //---------------------------------------------------------------------------------- -- cgit v1.2.3 From 520f317a7522804ff2f113f01ca69cd45d7863a5 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Thu, 25 Jan 2018 23:12:03 +0100 Subject: #include header for time() on Windows --- src/physac.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/physac.h b/src/physac.h index a04d3cb3..463d8950 100644 --- a/src/physac.h +++ b/src/physac.h @@ -255,6 +255,7 @@ PHYSACDEF void ClosePhysics(void); // Functions required to query time on Windows int __stdcall QueryPerformanceCounter(unsigned long long int *lpPerformanceCount); int __stdcall QueryPerformanceFrequency(unsigned long long int *lpFrequency); + #include #elif defined(__linux__) #if _POSIX_C_SOURCE < 199309L #undef _POSIX_C_SOURCE -- cgit v1.2.3