summaryrefslogtreecommitdiff
path: root/lib/interception
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-06-28 13:12:07 +0000
committerAlexey Samsonov <samsonov@google.com>2012-06-28 13:12:07 +0000
commitd00ecb64892dcb03c5ae93a654da669b96753b01 (patch)
tree1a1467a340bbdb46d32e7400ddc1455d0dc6c220 /lib/interception
parent37dd1d78906228d412caf05102106773dfa7222f (diff)
[ASan] silence various warnings in cmake build of asan unit tests
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception')
-rw-r--r--lib/interception/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/interception/CMakeLists.txt b/lib/interception/CMakeLists.txt
index c0dd0dbd1..033b05fc1 100644
--- a/lib/interception/CMakeLists.txt
+++ b/lib/interception/CMakeLists.txt
@@ -14,6 +14,9 @@ if (APPLE)
endif ()
set(INTERCEPTION_CFLAGS "-fPIC -fno-exceptions -funwind-tables -fvisibility=hidden")
+if (SUPPORTS_NO_VARIADIC_MACROS_FLAG)
+ set(INTERCEPTION_CFLAGS "${INTERCEPTION_CFLAGS} -Wno-variadic-macros")
+endif ()
set(INTERCEPTION_COMMON_DEFINITIONS
INTERCEPTION_HAS_EXCEPTIONS=1)