projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d97514e
)
actionmuxer: Make the compiler warn
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 7 Apr 2023 12:02:44 +0000
(08:02 -0400)
committer
Matthias 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
patch
|
blob
|
history
diff --git
a/gtk/gtkactionmuxerprivate.h
b/gtk/gtkactionmuxerprivate.h
index a7e03f00783473c7921d84810fde5b3e3096d9a8..a725a8295ca73cc8dc41b81deb0a6e1ad5191a14 100644
(file)
--- a/
gtk/gtkactionmuxerprivate.h
+++ b/
gtk/gtkactionmuxerprivate.h
@@
-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);