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.
This commit is contained in:
1 parent
9492492d5f
commit
b4e069e7f8
18 files changed
+19
-19
No files matched your search
@@ -535,7 +535,7 @@ SDL_Fcitx_UpdateTextRect(SDL_Rect *rect)
|
||||
}
|
||||
|
||||
void
|
||||
SDL_Fcitx_PumpEvents()
|
||||
SDL_Fcitx_PumpEvents(void)
|
||||
{
|
||||
SDL_DBusContext *dbus = fcitx_client.dbus;
|
||||
DBusConnection *conn = dbus->session_conn;
|
||||
|
||||
Reference in new issue
Block a user