]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: prohibit_attribute_macros: generalize error
authorJán Tomko <jtomko@redhat.com>
Tue, 15 Oct 2019 11:13:39 +0000 (13:13 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 15 Oct 2019 14:14:18 +0000 (16:14 +0200)
Instead of enumerating every single macro variant, just emit
a more generic error.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
build-aux/syntax-check.mk

index c30d575e7747d04cbac47e8763b02354247b6bdc..c0612a3319fb164f10d3abdbbc9f817b2ea146ed 100644 (file)
@@ -631,7 +631,7 @@ sc_avoid_g_gnuc_unused_in_header:
 sc_prohibit_attribute_macros:
        @prohibit='ATTRIBUTE_(UNUSED|NORETURN|SENTINEL|RETURN_CHECK)' \
        in_vc_files='\.[ch]$$' \
-       halt='use GLib macros: G_GNUC_{UNUSED,NORETURN,NULL_TERMINATED,WARN_UNUSED_RESULT}' \
+       halt='use GLib macros: G_GNUC_<ATTRIBUTE_SUFFIX> for most' \
          $(_sc_search_regexp)
 
 sc_prohibit_int_index: