From ad9ae1d5dbdd7859aeca32140d2724f7128f85c3 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 31 May 2016 22:46:38 +0300 Subject: [PATCH] Fixed build [#METR-20000]. --- contrib/libtcmalloc/src/base/elf_mem_image.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/contrib/libtcmalloc/src/base/elf_mem_image.cc b/contrib/libtcmalloc/src/base/elf_mem_image.cc index 82d14d68783..d9605609e3a 100644 --- a/contrib/libtcmalloc/src/base/elf_mem_image.cc +++ b/contrib/libtcmalloc/src/base/elf_mem_image.cc @@ -54,8 +54,10 @@ #define VERSYM_VERSION 0x7fff -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-const-variable" +#if __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-const-variable" +#endif namespace base { @@ -434,6 +436,8 @@ void ElfMemImage::SymbolIterator::Update(int increment) { } // namespace base -#pragma GCC diagnostic pop +#if __clang__ +#pragma clang diagnostic pop +#endif #endif // HAVE_ELF_MEM_IMAGE