Possibly fix compiler warnings, simplify SDLTest_SurfaceImage_t definition.

This commit is contained in:
Ryan C. Gordon
2013-04-03 11:38:05 -04:00
parent d24b0148d6
commit 09c6b9cdfb
2 changed files with 2 additions and 6 deletions

View File

@@ -53,11 +53,7 @@ typedef struct SDLTest_SurfaceImage_s {
int width;
int height;
unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
#if (defined(__GNUC__) && (__GNUC__ <= 2))
unsigned char pixel_data[0];
#else
unsigned char pixel_data[];
#endif
const unsigned char *pixel_data;
} SDLTest_SurfaceImage_t;
/* Test images */

View File

@@ -22,7 +22,7 @@ typedef struct SurfaceImage_s {
int width;
int height;
unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
const unsigned char pixel_data[];
const unsigned char *pixel_data;
} SurfaceImage_t;
#define ALLOWABLE_ERROR_OPAQUE 0