diff --git a/compiler-rt/lib/memprof/tests/CMakeLists.txt b/compiler-rt/lib/memprof/tests/CMakeLists.txt index ab6c716bba742b..688983e3a3ca4a 100644 --- a/compiler-rt/lib/memprof/tests/CMakeLists.txt +++ b/compiler-rt/lib/memprof/tests/CMakeLists.txt @@ -10,9 +10,13 @@ set(MEMPROF_UNITTEST_CFLAGS -O2 -g -fno-rtti - -Wno-gnu-zero-variadic-macro-arguments + -Wno-pedantic -fno-omit-frame-pointer) +# Suppress warnings for gmock variadic macros for clang and gcc respectively. +append_list_if(SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG -Wno-gnu-zero-variadic-macro-arguments MEMPROF_UNITTEST_CFLAGS) +append_list_if(COMPILER_RT_HAS_WVARIADIC_MACROS_FLAG -Wno-variadic-macros MEMPROF_UNITTEST_CFLAGS) + file(GLOB MEMPROF_HEADERS ../*.h) set(MEMPROF_SOURCES