From d3b251a92fced02aaebd241a3906e35acd0956c5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 18 May 2004 05:10:28 +0000 Subject: [PATCH] fix "warning: variable `SDL_Surface*img' might be clobbered by `longjmp'" --- stepmania/src/RageSurface_Load_JPEG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageSurface_Load_JPEG.cpp b/stepmania/src/RageSurface_Load_JPEG.cpp index 060fd0a2da..34b5617429 100644 --- a/stepmania/src/RageSurface_Load_JPEG.cpp +++ b/stepmania/src/RageSurface_Load_JPEG.cpp @@ -112,7 +112,7 @@ static SDL_Surface *RageSurface_Load_JPEG( RageFile *f, const char *fn, char err jerr.pub.error_exit = my_error_exit; jerr.pub.output_message = my_output_message; - SDL_Surface *img = NULL; + SDL_Surface *volatile img = NULL; /* volatile to prevent possible problems with setjmp */ if( setjmp(jerr.setjmp_buffer) ) {