diff options
author | Sam Lantinga <slouken@libsdl.org> | 2016-12-26 02:12:21 -0800 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2016-12-26 02:12:21 -0800 |
commit | 7f0b81eebd53dcaedd4440169bfc8993fd7de2ce (patch) | |
tree | 289d2718566accdbdc081c6b215c1a701c1276da /Xcode-iOS | |
parent | a838f265ba387f698d3a8ca0e39f3964da1d7697 (diff) |
Fixed bug 3517 - Compiler warnings with gcc -Wstrict-prototypes
felix
Compiling even a simple SDL2 'hello world' program with gcc -Wstrict-prototypes (GCC 6.2.1) results in warnings like:
/usr/include/SDL2/SDL_gamecontroller.h:143:1: attention : function declaration isn't a prototype [-Wstrict-prototypes]
extern DECLSPEC int SDLCALL SDL_GameControllerNumMappings();
^~~~~~
It seems there is a missing 'void' between the parentheses.
Diffstat (limited to 'Xcode-iOS')
-rw-r--r-- | Xcode-iOS/Demos/src/common.c | 2 | ||||
-rw-r--r-- | Xcode-iOS/Demos/src/common.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Xcode-iOS/Demos/src/common.c b/Xcode-iOS/Demos/src/common.c index 0a1485ae92..e15fb5ff19 100644 --- a/Xcode-iOS/Demos/src/common.c +++ b/Xcode-iOS/Demos/src/common.c @@ -39,7 +39,7 @@ fatalError(const char *string) static Uint64 prevTime = 0; double -updateDeltaTime() +updateDeltaTime(void) { Uint64 curTime; double deltaTime; diff --git a/Xcode-iOS/Demos/src/common.h b/Xcode-iOS/Demos/src/common.h index 96b2c964a0..60475086e4 100644 --- a/Xcode-iOS/Demos/src/common.h +++ b/Xcode-iOS/Demos/src/common.h @@ -7,4 +7,4 @@ extern int randomInt(int min, int max); extern float randomFloat(float min, float max); extern void fatalError(const char *string); -extern double updateDeltaTime(); +extern double updateDeltaTime(void); |