From 6259a72636ebf9568c5c446b716d6775a22c09af Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Wed, 5 Dec 2018 16:13:12 +0100 Subject: [PATCH] Warnings: fix a documentation warning and missing prototypes --- include/SDL_syswm.h | 2 +- include/SDL_test_memory.h | 4 ++-- src/render/software/SDL_render_sw.c | 2 +- src/thread/pthread/SDL_systhread.c | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/SDL_syswm.h b/include/SDL_syswm.h index e7d9baa9bf101..79c0bc6c57ca0 100644 --- a/include/SDL_syswm.h +++ b/include/SDL_syswm.h @@ -34,7 +34,7 @@ #include "SDL_version.h" /** - * \file SDL_syswm.h + * \brief SDL_syswm.h * * Your application has access to a special type of event ::SDL_SYSWMEVENT, * which contains window-manager specific information and arrives whenever diff --git a/include/SDL_test_memory.h b/include/SDL_test_memory.h index 4827ae6f2c372..576715d69e343 100644 --- a/include/SDL_test_memory.h +++ b/include/SDL_test_memory.h @@ -42,14 +42,14 @@ extern "C" { * * \note This should be called before any other SDL functions for complete tracking coverage */ -int SDLTest_TrackAllocations(); +int SDLTest_TrackAllocations(void); /** * \brief Print a log of any outstanding allocations * * \note This can be called after SDL_Quit() */ -void SDLTest_LogAllocations(); +void SDLTest_LogAllocations(void); /* Ends C function definitions when using C++ */ diff --git a/src/render/software/SDL_render_sw.c b/src/render/software/SDL_render_sw.c index b907456694570..1e695137e429d 100644 --- a/src/render/software/SDL_render_sw.c +++ b/src/render/software/SDL_render_sw.c @@ -820,7 +820,7 @@ SW_CreateRendererForSurface(SDL_Surface * surface) return renderer; } -SDL_Renderer * +static SDL_Renderer * SW_CreateRenderer(SDL_Window * window, Uint32 flags) { SDL_Surface *surface; diff --git a/src/thread/pthread/SDL_systhread.c b/src/thread/pthread/SDL_systhread.c index 92ffaeaf327fa..1abff2868f347 100644 --- a/src/thread/pthread/SDL_systhread.c +++ b/src/thread/pthread/SDL_systhread.c @@ -49,6 +49,7 @@ #include "SDL_log.h" #include "SDL_platform.h" #include "SDL_thread.h" +#include "SDL_system.h" #include "../SDL_thread_c.h" #include "../SDL_systhread.h" #ifdef __ANDROID__