Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added more strict warning flags.
Browse files Browse the repository at this point in the history
Fixed bugs/issues uncovered by warning flags.
  • Loading branch information
bobbens committed Jul 9, 2009
1 parent baad3c6 commit 02811c7
Show file tree
Hide file tree
Showing 5 changed files with 631 additions and 635 deletions.
2 changes: 1 addition & 1 deletion test/automated/Makefile
@@ -1,6 +1,6 @@


CFLAGS := -I. `sdl-config --cflags`
CFLAGS := -W -Wall -Wextra -I. `sdl-config --cflags`
LDFLAGS := `sdl-config --libs`

# If it doesn't pick up defaults
Expand Down
4 changes: 2 additions & 2 deletions test/automated/SDL_at.c
Expand Up @@ -63,7 +63,7 @@ int SDL_ATfinish( int verbose )
/* Make sure initialized. */
if (at_suite_msg == NULL) {
SDL_ATprint("Ended testcase without initializing.\n");
return;
return 1;
}

/* Display message if verbose on failed. */
Expand Down Expand Up @@ -160,7 +160,7 @@ int SDL_ATprint( const char *msg, ... )

/* Make sure there is something to print. */
if (msg == NULL)
return;
return 0;
else {
va_start(ap, msg);
ret = vprintf(msg, ap);
Expand Down
4 changes: 3 additions & 1 deletion test/automated/rwops/rwops.c
Expand Up @@ -155,7 +155,6 @@ static void rwops_testFP (void)
#ifdef HAVE_STDIO_H
FILE *fp;
SDL_RWops *rw;
int i;

/* Begin testcase. */
SDL_ATbegin( "SDL_RWFromFP" );
Expand Down Expand Up @@ -189,6 +188,9 @@ static void rwops_testFP (void)
*/
int main( int argc, const char *argv[] )
{
(void) argc;
(void) argv;

SDL_ATinit( "SDL_RWops" );

rwops_testMem();
Expand Down

0 comments on commit 02811c7

Please sign in to comment.