mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
syntax-check: prohibit_attribute_macros: generalize error
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>
This commit is contained in:
parent
81077d6e8a
commit
ec96b74041
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user