[glib] Avoid warning for G_PARAM_DEPRECATED with GCC 6 [-Wpedantic]



commit 7470cc902b8d9e1c93c28ab0d9168fb8646b20f3
Author: Hannes Müller <h c f mueller gmx de>
Date:   Mon Oct 17 21:18:55 2016 +0200

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gobject/gparam.h b/gobject/gparam.h
index c473a52..7584d5d 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;
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]