[libcxx-commits] [libcxx] 24a176b - [libcxx] Apply pragma for silencing warning when building with clang-cl too
Martin Storsjö via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 5 11:37:33 PST 2021
Author: Martin Storsjö
Date: 2021-03-05T21:36:54+02:00
New Revision: 24a176b107185d129cd0b25c28498de29240a409
URL: https://github.com/llvm/llvm-project/commit/24a176b107185d129cd0b25c28498de29240a409
DIFF: https://github.com/llvm/llvm-project/commit/24a176b107185d129cd0b25c28498de29240a409.diff
LOG: [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
Added:
Modified:
libcxx/src/filesystem/filesystem_common.h
Removed:
################################################################################
diff --git a/libcxx/src/filesystem/filesystem_common.h b/libcxx/src/filesystem/filesystem_common.h
index 38d4eb098e98..22bf8404860a 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
More information about the libcxx-commits
mailing list