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:
Bill Meltsner
2010-02-26 03:55:21 -05:00
parent dbf8301f24
commit 7c33786100
13 changed files with 153 additions and 142 deletions
+3 -2
View File
@@ -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;