Skip to content

Commit

Permalink
Fix unused argument warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Jan 18, 2015
1 parent 2f5f3b6 commit ce65a80
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Lesson0/src/main.cpp
Expand Up @@ -4,7 +4,7 @@
/*
* Lesson 0: Test to make sure SDL is setup properly
*/
int main(int argc, char** argv){
int main(int, char**){
if (SDL_Init(SDL_INIT_EVERYTHING) != 0){
std::cout << "SDL_Init Error: " << SDL_GetError() << std::endl;
return 1;
Expand Down
2 changes: 1 addition & 1 deletion Lesson1/src/main.cpp
Expand Up @@ -5,7 +5,7 @@
/*
* Lesson 1: Hello World!
*/
int main(int argc, char** argv){
int main(int, char**){
//First we need to start up SDL, and make sure it went ok
if (SDL_Init(SDL_INIT_EVERYTHING) != 0){
std::cout << "SDL_Init Error: " << SDL_GetError() << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion Lesson2/src/main.cpp
Expand Up @@ -61,7 +61,7 @@ void renderTexture(SDL_Texture *tex, SDL_Renderer *ren, int x, int y){
SDL_RenderCopy(ren, tex, NULL, &dst);
}

int main(int argc, char** argv){
int main(int, char**){
//Start up SDL and make sure it went ok
if (SDL_Init(SDL_INIT_EVERYTHING) != 0){
logSDLError(std::cout, "SDL_Init");
Expand Down
2 changes: 1 addition & 1 deletion Lesson3/src/main.cpp
Expand Up @@ -68,7 +68,7 @@ void renderTexture(SDL_Texture *tex, SDL_Renderer *ren, int x, int y){
renderTexture(tex, ren, x, y, w, h);
}

int main(int argc, char** argv){
int main(int, char**){
//Start up SDL and make sure it went ok
if (SDL_Init(SDL_INIT_EVERYTHING) != 0){
logSDLError(std::cout, "SDL_Init");
Expand Down
2 changes: 1 addition & 1 deletion Lesson4/src/main.cpp
Expand Up @@ -66,7 +66,7 @@ void renderTexture(SDL_Texture *tex, SDL_Renderer *ren, int x, int y){
renderTexture(tex, ren, x, y, w, h);
}

int main(int argc, char** argv){
int main(int, char**){
//Start up SDL and make sure it went ok
if (SDL_Init(SDL_INIT_EVERYTHING) != 0){
logSDLError(std::cout, "SDL_Init");
Expand Down
2 changes: 1 addition & 1 deletion Lesson5/src/main.cpp
Expand Up @@ -70,7 +70,7 @@ void renderTexture(SDL_Texture *tex, SDL_Renderer *ren, int x, int y, SDL_Rect *
renderTexture(tex, ren, dst, clip);
}

int main(int argc, char** argv){
int main(int, char**){
//Start up SDL and make sure it went ok
if (SDL_Init(SDL_INIT_EVERYTHING) != 0){
logSDLError(std::cout, "SDL_Init");
Expand Down
2 changes: 1 addition & 1 deletion Lesson6/src/main.cpp
Expand Up @@ -92,7 +92,7 @@ SDL_Texture* renderText(const std::string &message, const std::string &fontFile,
return texture;
}

int main(int argc, char** argv){
int main(int, char**){
//Start up SDL and make sure it went ok
if (SDL_Init(SDL_INIT_EVERYTHING) != 0){
logSDLError(std::cout, "SDL_Init");
Expand Down

0 comments on commit ce65a80

Please sign in to comment.