summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-10-18 23:07:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-10-18 23:10:56 +0200
commitbbb5da15782f074feeaef6bd268e66495187876b (patch)
treeb5929e6947d7b7dcc4c8d0e500c0ea09b3eb2366 /sal/rtl
parentbf1f0183d5c6b4c94acdbee27276d5a386a657f4 (diff)
Clang does not understand #pragma GCC diagnostic warning "-Wunused-but-set-variable".
See <https://bugs.kde.org/show_bug.cgi?id=284384> "clang 3.1 -Wunused-value warnings in valgrind.h, memcheck.h" for a way to silence these warnings when building with clang.
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/source/alloc_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/source/alloc_impl.h b/sal/rtl/source/alloc_impl.h
index 39bbbf6be985..55f6ed3d1b38 100644
--- a/sal/rtl/source/alloc_impl.h
+++ b/sal/rtl/source/alloc_impl.h
@@ -264,7 +264,7 @@ typedef CRITICAL_SECTION rtl_memory_lock_type;
#define GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)
-#if GCC_VERSION >= 40201
+#if GCC_VERSION >= 40201 && !defined __clang__
#pragma GCC diagnostic warning "-Wunused-but-set-variable"
#endif
#endif /* NVALGRIND || HAVE_MEMCHECK_H */