Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Added more strict warning flags.
Fixed bugs/issues uncovered by warning flags.
  • Loading branch information
bobbens committed Jul 9, 2009
1 parent baad3c6 commit 02811c7aa9e6bdd7cf79294e08abaf4141c1ac95
Showing with 631 additions and 635 deletions.
  1. +1 −1 test/automated/Makefile
  2. +2 −2 test/automated/SDL_at.c
  3. +3 −1 test/automated/rwops/rwops.c
  4. +610 −625 test/automated/surface/blend.c
  5. +15 −6 test/automated/surface/surface.c
@@ -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
@@ -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. */
@@ -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);
@@ -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" );
@@ -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();

0 comments on commit 02811c7

Please sign in to comment.