gendispatch: Add 'G_GNUC_WARN_UNUSED_RESULT' to output of 'aclheader'

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>
This commit is contained in:
Peter Krempa 2022-03-29 15:12:17 +02:00
parent aa47051bf4
commit 1be393d9ad

View File

@ -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";