From: Peter Krempa Date: Wed, 31 Mar 2021 08:18:54 +0000 (+0200) Subject: syntax-check: Clean up check for g_auto* X-Git-Tag: v7.3.0-rc1~376 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65f702020e8da79494fe5795d61bff1e2f5edd2d;p=thirdparty%2Flibvirt.git syntax-check: Clean up check for g_auto* Remove the old libvirt variants that are no longer in use and include g_autostringlist. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index 10fa4bb553..94340ddf92 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -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)