mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
internal: remove no longer used ATTRIBUTE macros
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
9415a072c2
commit
bda2cced34
@ -71,8 +71,6 @@ admin_included_files = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ignored_words = {
|
ignored_words = {
|
||||||
"ATTRIBUTE_UNUSED": (0, "macro keyword"),
|
|
||||||
"ATTRIBUTE_SENTINEL": (0, "macro keyword"),
|
|
||||||
"G_GNUC_UNUSED": (0, "macro keyword"),
|
"G_GNUC_UNUSED": (0, "macro keyword"),
|
||||||
"G_GNUC_NULL_TERMINATED": (0, "macro keyword"),
|
"G_GNUC_NULL_TERMINATED": (0, "macro keyword"),
|
||||||
"VIR_DEPRECATED": (0, "macro keyword"),
|
"VIR_DEPRECATED": (0, "macro keyword"),
|
||||||
|
@ -93,33 +93,6 @@
|
|||||||
#define NUL_TERMINATE(buf) do { (buf)[sizeof(buf)-1] = '\0'; } while (0)
|
#define NUL_TERMINATE(buf) do { (buf)[sizeof(buf)-1] = '\0'; } while (0)
|
||||||
#define ARRAY_CARDINALITY(Array) (sizeof(Array) / sizeof(*(Array)))
|
#define ARRAY_CARDINALITY(Array) (sizeof(Array) / sizeof(*(Array)))
|
||||||
|
|
||||||
/**
|
|
||||||
* ATTRIBUTE_UNUSED:
|
|
||||||
*
|
|
||||||
* Macro to flag consciously unused parameters to functions
|
|
||||||
*/
|
|
||||||
#ifndef ATTRIBUTE_UNUSED
|
|
||||||
# define ATTRIBUTE_UNUSED __attribute__((__unused__))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ATTRIBUTE_NORETURN:
|
|
||||||
*
|
|
||||||
* Macro to indicate that a function won't return to the caller
|
|
||||||
*/
|
|
||||||
#ifndef ATTRIBUTE_NORETURN
|
|
||||||
# define ATTRIBUTE_NORETURN __attribute__((__noreturn__))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ATTRIBUTE_SENTINEL:
|
|
||||||
*
|
|
||||||
* Macro to check for NULL-terminated varargs lists
|
|
||||||
*/
|
|
||||||
#ifndef ATTRIBUTE_SENTINEL
|
|
||||||
# define ATTRIBUTE_SENTINEL __attribute__((__sentinel__))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ATTRIBUTE_NOINLINE:
|
* ATTRIBUTE_NOINLINE:
|
||||||
*
|
*
|
||||||
@ -150,10 +123,6 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ATTRIBUTE_RETURN_CHECK
|
|
||||||
# define ATTRIBUTE_RETURN_CHECK __attribute__((__warn_unused_result__))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ATTRIBUTE_PACKED
|
* ATTRIBUTE_PACKED
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user