mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-11-23 04:24:24 +03: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:
@@ -93,33 +93,6 @@
|
||||
#define NUL_TERMINATE(buf) do { (buf)[sizeof(buf)-1] = '\0'; } while (0)
|
||||
#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:
|
||||
*
|
||||
@@ -150,10 +123,6 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef ATTRIBUTE_RETURN_CHECK
|
||||
# define ATTRIBUTE_RETURN_CHECK __attribute__((__warn_unused_result__))
|
||||
#endif
|
||||
|
||||
/**
|
||||
* ATTRIBUTE_PACKED
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user