Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Possibly fix compiler warnings, simplify SDLTest_SurfaceImage_t defin…
Browse files Browse the repository at this point in the history
…ition.
  • Loading branch information
icculus committed Apr 3, 2013
1 parent 2c85502 commit b4f52bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions include/SDL_test_images.h
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion test/automated/common/common.h
Expand Up @@ -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
Expand Down

0 comments on commit b4f52bf

Please sign in to comment.