]> xenbits.xensource.com Git - libvirt.git/commitdiff
gendispatch: Add 'G_GNUC_WARN_UNUSED_RESULT' to output of 'aclheader'
authorPeter Krempa <pkrempa@redhat.com>
Tue, 29 Mar 2022 13:12:17 +0000 (15:12 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Jan 2023 14:30:09 +0000 (15:30 +0100)
Require check of return value of the ACL checking functions.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/rpc/gendispatch.pl

index 5f2b163ea04a6bc81faacc222b4b5ba002e0226c..54d55d91e7751f8cfdcc6ad4f6f1586094f40e06 100755 (executable)
@@ -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";