actionmuxer: Make the compiler warn
authorMatthias Clasen <mclasen@redhat.com>
Fri, 7 Apr 2023 12:02:44 +0000 (08:02 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Apr 2023 07:07:42 +0000 (09:07 +0200)
Warn when the boolean return isn't used, since we
may not initialize the out arguments in the FALSE
case (see the previous commits).

gtk/gtkactionmuxerprivate.h

index db69cabc9d6c418c3ac9995622592d7c3d041c72..a3e3cf3fc57fe49b8d65528cc9dc7fd7a9512e68 100644 (file)
@@ -74,7 +74,7 @@ gboolean                gtk_action_muxer_query_action                   (GtkActi
                                                                          const GVariantType **parameter_type,
                                                                          const GVariantType **state_type,
                                                                          GVariant           **state_hint,
-                                                                         GVariant           **state);
+                                                                         GVariant           **state) G_GNUC_WARN_UNUSED_RESULT;
 void                    gtk_action_muxer_activate_action                (GtkActionMuxer      *muxer,
                                                                          const char          *action_name,
                                                                          GVariant            *parameter);