]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: Clean up check for g_auto*
authorPeter Krempa <pkrempa@redhat.com>
Wed, 31 Mar 2021 08:18:54 +0000 (10:18 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 6 Apr 2021 14:53:49 +0000 (16:53 +0200)
Remove the old libvirt variants that are no longer in use and include
g_autostringlist.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
build-aux/syntax-check.mk

index 10fa4bb5531ec64d7d86f24b18985710c5ba5c04..94340ddf9205ff828848c1e87283c3d480a394f2 100644 (file)
@@ -1106,7 +1106,7 @@ sc_prohibit_backslash_alignment:
 # Rule to ensure that variables declared using a cleanup macro are
 # always initialized.
 sc_require_attribute_cleanup_initialization:
-       @prohibit='((g_auto(ptr|free)?)|(VIR_AUTO((FREE|PTR|UNREF|CLEAN)\(.+\)|CLOSE|STRINGLIST))) *[^=]+;' \
+       @prohibit='((g_auto(ptr|free|slist)?)|VIR_AUTOCLOSE)) *[^=]+;' \
        in_vc_files='\.[chx]$$' \
        halt='variable declared with a cleanup macro must be initialized' \
          $(_sc_search_regexp)