]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build-aux: remove syntax checks for ATTRIBUTE_* and ARRAY_CARDINALITY
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 24 May 2022 12:30:35 +0000 (13:30 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 27 May 2022 08:22:18 +0000 (09:22 +0100)
These checks made sense when we were in process of converting code.
Since the definition of the macros has been entirely removed now,
the compiler will already thrown an error. There aren't likely to
be any in-flight patches that would hit this anyone either.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
build-aux/syntax-check.mk

index 73f8a21c1b208015f26d74abab580f8410ada9cd..3c196bdf68dd412e2311a4787730cf1ec93a4ccd 100644 (file)
@@ -342,18 +342,6 @@ sc_avoid_g_gnuc_unused_in_header:
        halt='use G_GNUC_UNUSED in .c rather than .h files' \
          $(_sc_search_regexp)
 
-sc_prohibit_attribute_macros:
-       @prohibit='ATTRIBUTE_(UNUSED|NORETURN|SENTINEL|RETURN_CHECK|NOINLINE|FMT_PRINTF|FALLTHROUGH)' \
-       in_vc_files='\.[ch]$$' \
-       halt='use GLib macros: G_GNUC_<ATTRIBUTE_SUFFIX> for most' \
-         $(_sc_search_regexp)
-
-sc_prohibit_non_glib_macros:
-       @prohibit='ARRAY_CARDINALITY' \
-       in_vc_files='\.[ch]$$' \
-       halt='use GLib macros: G_N_ELEMENTS' \
-         $(_sc_search_regexp)
-
 sc_prohibit_int_index:
        @prohibit='\<(int|unsigned)\s*\*?index\>(\s|,|;)' \
        halt='use different name than 'index' for declaration' \