- add ATTRIBUTE_UNUSED_RESULT for internal use
This commit is contained in:
parent
b7e61485d6
commit
9a33780152
@ -56,12 +56,15 @@
|
|||||||
# define ALWAYS_INLINE __attribute__ ((always_inline)) inline
|
# define ALWAYS_INLINE __attribute__ ((always_inline)) inline
|
||||||
# if !ENABLE_WERROR
|
# if !ENABLE_WERROR
|
||||||
# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
|
# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
|
||||||
|
# define ATTRIBUTE_UNUSED_RESULT __attribute__ ((warn_unused_result))
|
||||||
# else
|
# else
|
||||||
# define ATTRIBUTE_DEPRECATED /* n/a */
|
# define ATTRIBUTE_DEPRECATED /* n/a */
|
||||||
|
# define ATTRIBUTE_UNUSED_RESULT /* n/a */
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# define ALWAYS_INLINE inline
|
# define ALWAYS_INLINE inline
|
||||||
# define ATTRIBUTE_DEPRECATED /* n/a */
|
# define ATTRIBUTE_DEPRECATED /* n/a */
|
||||||
|
# define ATTRIBUTE_UNUSED_RESULT /* n/a */
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* -fwhole-program makes all symbols local. The attribute externally_visible
|
/* -fwhole-program makes all symbols local. The attribute externally_visible
|
||||||
|
Loading…
x
Reference in New Issue
Block a user