fix "warning: variable SDL_Surface*img' might be clobbered by longjmp'"

This commit is contained in:
Glenn Maynard
2004-05-18 05:10:28 +00:00
parent bbb1aa41e4
commit d3b251a92f
+1 -1
View File
@@ -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) )
{