SDL: Fix some warnings
Jeffrey Pfau jeffrey@endrift.com
Fri, 31 Jul 2015 21:53:53 -0700
2 files changed,
3 insertions(+),
0 deletions(-)
M
src/platform/sdl/gl-common.c
→
src/platform/sdl/gl-common.c
@@ -10,6 +10,7 @@ struct SDLSoftwareRenderer* renderer = (struct SDLSoftwareRenderer*) context->user;
#if SDL_VERSION_ATLEAST(2, 0, 0) SDL_GL_SwapWindow(renderer->window); #else + UNUSED(renderer); SDL_GL_SwapBuffers(); #endif }
M
src/platform/sdl/gles2-sdl.c
→
src/platform/sdl/gles2-sdl.c
@@ -7,6 +7,8 @@ #include "main.h"
#include "gl-common.h" +#include <malloc.h> + static bool GBASDLGLES2Init(struct SDLSoftwareRenderer* renderer); static void GBASDLGLES2Runloop(struct GBAThread* context, struct SDLSoftwareRenderer* renderer); static void GBASDLGLES2Deinit(struct SDLSoftwareRenderer* renderer);