Skip to content

Commit

Permalink
IMG_jpg.c,IMG_webp.c: No need of 'volatile' keyword here
Browse files Browse the repository at this point in the history
(cherry picked from commit a61c2fc)
  • Loading branch information
1bsyl authored and sezero committed Jan 26, 2024
1 parent e3851c9 commit df14efe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IMG_jpg.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ SDL_Surface *IMG_LoadJPG_RW(SDL_RWops *src)
Sint64 start;
struct jpeg_decompress_struct cinfo;
JSAMPROW rowptr[1];
SDL_Surface *volatile surface = NULL;
SDL_Surface *surface = NULL;
struct my_error_mgr jerr;

if ( !src ) {
Expand Down
2 changes: 1 addition & 1 deletion src/IMG_webp.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ SDL_Surface *IMG_LoadWEBP_RW(SDL_RWops *src)
{
Sint64 start;
const char *error = NULL;
SDL_Surface *volatile surface = NULL;
SDL_Surface *surface = NULL;
Uint32 format;
WebPBitstreamFeatures features;
int raw_data_size;
Expand Down

0 comments on commit df14efe

Please sign in to comment.