From: Martin Storsjö Date: Fri, 5 Mar 2021 12:47:31 +0000 (+0200) Subject: [libcxx] Apply pragma for silencing warning when building with clang-cl too X-Git-Tag: llvmorg-14-init~13209 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24a176b107185d129cd0b25c28498de29240a409;p=platform%2Fupstream%2Fllvm.git [libcxx] Apply pragma for silencing warning when building with clang-cl too This silences warnings about unused functions (in an anonymous namespace). Differential Revision: https://reviews.llvm.org/D98036 --- diff --git a/libcxx/src/filesystem/filesystem_common.h b/libcxx/src/filesystem/filesystem_common.h index 38d4eb0..22bf840 100644 --- a/libcxx/src/filesystem/filesystem_common.h +++ b/libcxx/src/filesystem/filesystem_common.h @@ -35,7 +35,7 @@ #endif #endif -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-function" #endif