summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-07-23 13:36:51 +0200
committerDavid Tardon <dtardon@redhat.com>2013-07-23 13:36:51 +0200
commit68c8dcec1f8689191e1be3366ec3c127096ae4d4 (patch)
treed344413008eb7fc6e51933e5c1be50e89314d8df /include
parent2270f32c6bc055ab79c075015843124a5370e020 (diff)
WaE: "HAVE_GCC_ATTRIBUTE_WARN_UNUSED" is not defined
Change-Id: Id45e2a5c31471b4f5a59c4511bbacc12f78356f6
Diffstat (limited to 'include')
-rw-r--r--include/sal/types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sal/types.h b/include/sal/types.h
index 9ce2cef8aa19..7e3a0b6358c3 100644
--- a/include/sal/types.h
+++ b/include/sal/types.h
@@ -555,7 +555,7 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) {
*/
-#if HAVE_GCC_ATTRIBUTE_WARN_UNUSED
+#if defined HAVE_GCC_ATTRIBUTE_WARN_UNUSED
#define SAL_WARN_UNUSED __attribute__((warn_unused))
#elif defined __clang__
#define SAL_WARN_UNUSED __attribute__((annotate("lo_warn_unused")))