Revert "WaE: "HAVE_GCC_ATTRIBUTE_WARN_UNUSED" is not defined"
Nope, that caused warning: unknown attribute 'warn_unused' ignored with Clang.
This reverts commit 68c8dcec1f
.
This commit is contained in:
@@ -555,7 +555,7 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) {
|
||||
|
||||
*/
|
||||
|
||||
#if defined HAVE_GCC_ATTRIBUTE_WARN_UNUSED
|
||||
#if HAVE_GCC_ATTRIBUTE_WARN_UNUSED
|
||||
#define SAL_WARN_UNUSED __attribute__((warn_unused))
|
||||
#elif defined __clang__
|
||||
#define SAL_WARN_UNUSED __attribute__((annotate("lo_warn_unused")))
|
||||
|
Reference in New Issue
Block a user