Add Q_DECL_UNUSED, marking functions or variables unused
It's similar to Q_UNUSED, but this is to be added in the declaration Change-Id: I2f664129fb1f34f7913ef371d45c2c0fec958174 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
ad0a4eaf8d
commit
adb0cfc24c
|
|
@ -179,6 +179,7 @@
|
|||
# define Q_TYPEOF(expr) __typeof__(expr)
|
||||
# define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
|
||||
# define Q_DECL_ALIGN(n) __attribute__((__aligned__(n)))
|
||||
# define Q_DECL_UNUSED __attribute__((__unused__))
|
||||
# define Q_LIKELY(expr) __builtin_expect(!!(expr), true)
|
||||
# define Q_UNLIKELY(expr) __builtin_expect(!!(expr), false)
|
||||
# define Q_NORETURN __attribute__((__noreturn__))
|
||||
|
|
@ -816,6 +817,9 @@
|
|||
#ifndef Q_DECL_HIDDEN
|
||||
# define Q_DECL_HIDDEN
|
||||
#endif
|
||||
#ifndef Q_DECL_UNUSED
|
||||
# define Q_DECL_UNUSED
|
||||
#endif
|
||||
#ifndef Q_FUNC_INFO
|
||||
# if defined(Q_OS_SOLARIS) || defined(Q_CC_XLC)
|
||||
# define Q_FUNC_INFO __FILE__ "(line number unavailable)"
|
||||
|
|
|
|||
Loading…
Reference in New Issue