Avoid warning for G_PARAM_DEPRECATED with GCC 6 [-Wpedantic]

Refer to https://bugzilla.gnome.org/show_bug.cgi?id=767882
Related to GCC https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71803
This commit is contained in:
Hannes Müller 2016-10-17 21:18:55 +02:00 committed by Matthias Clasen
parent 243c1b7e84
commit 7470cc902b

View File

@ -163,7 +163,8 @@ typedef enum
G_PARAM_STATIC_BLURB = 1 << 7,
/* User defined flags go here */
G_PARAM_EXPLICIT_NOTIFY = 1 << 30,
G_PARAM_DEPRECATED = 1 << 31
/* Avoid warning with -Wpedantic for gcc6 */
G_PARAM_DEPRECATED = (gint)(1u << 31)
} GParamFlags;
/**