[PATCH 14/36] gendispatch: Add 'G_GNUC_WARN_UNUSED_RESULT' to output of 'aclheader'
Peter Krempa
pkrempa at redhat.com
Thu Jan 5 16:30:03 UTC 2023
Require check of return value of the ACL checking functions.
Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
src/rpc/gendispatch.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl
index 5f2b163ea0..54d55d91e7 100755
--- a/src/rpc/gendispatch.pl
+++ b/src/rpc/gendispatch.pl
@@ -2182,7 +2182,7 @@ elsif ($mode eq "client") {
}
if ($mode eq "aclheader") {
- print "extern $ret $apiname(" . join(", ", @argdecls) . ");\n";
+ print "extern $ret $apiname(" . join(", ", @argdecls) . ") G_GNUC_WARN_UNUSED_RESULT;\n";
} else {
my @argvars;
push @argvars, "mgr";
--
2.38.1
More information about the libvir-list
mailing list