mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
fixed a ridiculous number of gcc warnings, nearly all of which were complaints about unused parameters - the remaining 199 warnings I get are from code that isn't ours (box2d is responsible for all but 8 of them)
This commit is contained in:
@@ -38,7 +38,8 @@ namespace opengl
|
||||
currentMode.height = 0;
|
||||
|
||||
// Window should be centered.
|
||||
SDL_putenv("SDL_VIDEO_CENTERED=center");
|
||||
char * center = "SDL_VIDEO_CENTERED=center";
|
||||
SDL_putenv(center);
|
||||
|
||||
if(SDL_InitSubSystem(SDL_INIT_VIDEO) < 0)
|
||||
throw Exception(SDL_GetError());
|
||||
@@ -423,7 +424,7 @@ namespace opengl
|
||||
return font;
|
||||
}
|
||||
|
||||
Font * Graphics::newImageFont(Image * image, const char * glyphs, float spacing)
|
||||
Font * Graphics::newImageFont(Image * image, const char * glyphs, float)
|
||||
{
|
||||
Font * font = new ImageFont(image, std::string(glyphs));
|
||||
|
||||
|
||||
@@ -58,19 +58,19 @@ namespace opengl
|
||||
return 1;
|
||||
}
|
||||
|
||||
int w_reset(lua_State * L)
|
||||
int w_reset(lua_State *)
|
||||
{
|
||||
instance->reset();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int w_clear(lua_State * L)
|
||||
int w_clear(lua_State *)
|
||||
{
|
||||
instance->clear();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int w_present(lua_State * L)
|
||||
int w_present(lua_State *)
|
||||
{
|
||||
instance->present();
|
||||
return 0;
|
||||
@@ -748,13 +748,13 @@ namespace opengl
|
||||
return instance->polygon(L);
|
||||
}
|
||||
|
||||
int w_push(lua_State * L)
|
||||
int w_push(lua_State *)
|
||||
{
|
||||
instance->push();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int w_pop(lua_State * L)
|
||||
int w_pop(lua_State *)
|
||||
{
|
||||
instance->pop();
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user