Skip to content

Commit

Permalink
SDL_sensor.h, SDL_video.h: remove comma at end of enumerator lists.
Browse files Browse the repository at this point in the history
Avoids gcc -pedantic warnings, closes bug #4253.
  • Loading branch information
sezero committed Sep 7, 2018
1 parent 264b81b commit afc1738
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/SDL_sensor.h
Expand Up @@ -71,7 +71,7 @@ typedef enum
SDL_SENSOR_INVALID = -1, /**< Returned for an invalid sensor */
SDL_SENSOR_UNKNOWN, /**< Unknown sensor type */
SDL_SENSOR_ACCEL, /**< Accelerometer */
SDL_SENSOR_GYRO, /**< Gyroscope */
SDL_SENSOR_GYRO /**< Gyroscope */
} SDL_SensorType;

/**
Expand Down
4 changes: 2 additions & 2 deletions include/SDL_video.h
Expand Up @@ -175,7 +175,7 @@ typedef enum
typedef enum
{
SDL_DISPLAYEVENT_NONE, /**< Never used */
SDL_DISPLAYEVENT_ORIENTATION, /**< Display orientation has changed to data1 */
SDL_DISPLAYEVENT_ORIENTATION /**< Display orientation has changed to data1 */
} SDL_DisplayEventID;

typedef enum
Expand All @@ -184,7 +184,7 @@ typedef enum
SDL_ORIENTATION_LANDSCAPE, /**< The display is in landscape mode, with the right side up, relative to portrait mode */
SDL_ORIENTATION_LANDSCAPE_FLIPPED, /**< The display is in landscape mode, with the left side up, relative to portrait mode */
SDL_ORIENTATION_PORTRAIT, /**< The display is in portrait mode */
SDL_ORIENTATION_PORTRAIT_FLIPPED, /**< The display is in portrait mode, upside down */
SDL_ORIENTATION_PORTRAIT_FLIPPED /**< The display is in portrait mode, upside down */
} SDL_DisplayOrientation;

/**
Expand Down

0 comments on commit afc1738

Please sign in to comment.