[gnome-builder] libide/core: add G_GNUC_UNUSED for non-essential inlines



commit cb45c5c0f478fc92e32160ed1cfc9ea703cf39ae
Author: Christian Hergert <chergert redhat com>
Date:   Wed Sep 14 16:53:15 2022 -0700

    libide/core: add G_GNUC_UNUSED for non-essential inlines
    
    That way we don't get so many compiler warnings for them on Clang.

 src/libide/core/ide-action-group.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/core/ide-action-group.h b/src/libide/core/ide-action-group.h
index d60c63af4..33ec6ca15 100644
--- a/src/libide/core/ide-action-group.h
+++ b/src/libide/core/ide-action-group.h
@@ -96,7 +96,7 @@ _##prefix##_get_action_info (GActionGroup *group,
   return info;                                                                    \
 }                                                                                 \
                                                                                   \
-static inline GVariant *                                                          \
+G_GNUC_UNUSED static inline GVariant *                                            \
 prefix##_get_action_state (Type *self,                                            \
                            const gchar *name)                                     \
 {                                                                                 \
@@ -105,7 +105,7 @@ prefix##_get_action_state (Type *self,
   return info->state;                                                             \
 }                                                                                 \
                                                                                   \
-static inline void                                                                \
+G_GNUC_UNUSED static inline void                                                  \
 prefix##_set_action_state (Type *self,                                            \
                            const gchar *name,                                     \
                            GVariant *state)                                       \
@@ -120,7 +120,7 @@ prefix##_set_action_state (Type *self,
     }                                                                             \
 }                                                                                 \
                                                                                   \
-static inline void                                                                \
+G_GNUC_UNUSED static inline void                                                  \
 prefix##_set_action_enabled (Type *self,                                          \
                              const gchar *name,                                   \
                              gboolean enabled)                                    \


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