mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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:
parent
aa47051bf4
commit
1be393d9ad
@ -2182,7 +2182,7 @@ elsif ($mode eq "client") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($mode eq "aclheader") {
|
if ($mode eq "aclheader") {
|
||||||
print "extern $ret $apiname(" . join(", ", @argdecls) . ");\n";
|
print "extern $ret $apiname(" . join(", ", @argdecls) . ") G_GNUC_WARN_UNUSED_RESULT;\n";
|
||||||
} else {
|
} else {
|
||||||
my @argvars;
|
my @argvars;
|
||||||
push @argvars, "mgr";
|
push @argvars, "mgr";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user