From 7470cc902b8d9e1c93c28ab0d9168fb8646b20f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20M=C3=BCller?= Date: Mon, 17 Oct 2016 21:18:55 +0200 Subject: [PATCH] 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 --- gobject/gparam.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gobject/gparam.h b/gobject/gparam.h index c473a524c..7584d5da4 100644 --- a/gobject/gparam.h +++ b/gobject/gparam.h @@ -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; /**