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, 7 Apr 2023 12:03:46 +0000 (08:03 -0400)
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 a7e03f00783473c7921d84810fde5b3e3096d9a8..a725a8295ca73cc8dc41b81deb0a6e1ad5191a14 100644 (file)
@@ -73,7 +73,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);