[Commits] SDL: SDL_sensor.h, SDL_video.h: remove comma at end of enumerato...

libsdl.org revision control commits-owner at libsdl.org
Fri Sep 7 00:48:05 PDT 2018


details:   https://hg.libsdl.org/SDL/rev/a3c2b6e89522
changeset: 12180:a3c2b6e89522
user:      Ozkan Sezer <sezeroz at gmail.com>
date:      Fri Sep 07 10:47:50 2018 +0300
description:
SDL_sensor.h, SDL_video.h: remove comma at end of enumerator lists.

Avoids gcc -pedantic warnings, closes bug #4253.

diffstat:

 include/SDL_sensor.h |  2 +-
 include/SDL_video.h  |  4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r c06be57c5a01 -r a3c2b6e89522 include/SDL_sensor.h
--- a/include/SDL_sensor.h	Thu Sep 06 00:56:13 2018 -0400
+++ b/include/SDL_sensor.h	Fri Sep 07 10:47:50 2018 +0300
@@ -71,7 +71,7 @@
     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;
 
 /**
diff -r c06be57c5a01 -r a3c2b6e89522 include/SDL_video.h
--- a/include/SDL_video.h	Thu Sep 06 00:56:13 2018 -0400
+++ b/include/SDL_video.h	Fri Sep 07 10:47:50 2018 +0300
@@ -175,7 +175,7 @@
 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
@@ -184,7 +184,7 @@
     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;
 
 /**


More information about the commits mailing list