From a61c2fc38f768b509d204182b4e988669036eb14 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Thu, 2 Mar 2023 22:30:37 +0100
Subject: [PATCH] No need of 'volatile' keyword here
---
IMG_jpg.c | 2 +-
IMG_png.c | 4 ++--
IMG_webp.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/IMG_jpg.c b/IMG_jpg.c
index 53a48e4a..aed4c605 100644
--- a/IMG_jpg.c
+++ b/IMG_jpg.c
@@ -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 ) {
diff --git a/IMG_png.c b/IMG_png.c
index e18ba2d0..67539559 100644
--- a/IMG_png.c
+++ b/IMG_png.c
@@ -236,14 +236,14 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src)
{
Sint64 start;
const char *error;
- SDL_Surface *volatile surface;
+ SDL_Surface *surface;
png_structp png_ptr;
png_infop info_ptr;
png_uint_32 width, height;
int bit_depth, color_type, interlace_type, num_channels;
Uint32 format = SDL_PIXELFORMAT_UNKNOWN;
SDL_Palette *palette;
- png_bytep *volatile row_pointers;
+ png_bytep *row_pointers;
int row, i;
int ckey = -1;
png_color_16 *transv;
diff --git a/IMG_webp.c b/IMG_webp.c
index d23c8b55..f0540633 100644
--- a/IMG_webp.c
+++ b/IMG_webp.c
@@ -153,7 +153,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;