[libcxx-commits] [PATCH] D98036: [libcxx] Apply pragma for silencing warning when building with clang-cl too

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 5 11:37:41 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG24a176b10718: [libcxx] Apply pragma for silencing warning when building with clang-cl too (authored by mstorsjo).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98036/new/

https://reviews.llvm.org/D98036

Files:
  libcxx/src/filesystem/filesystem_common.h


Index: libcxx/src/filesystem/filesystem_common.h
===================================================================
--- libcxx/src/filesystem/filesystem_common.h
+++ 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98036.328601.patch
Type: text/x-patch
Size: 402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210305/785fec16/attachment.bin>


More information about the libcxx-commits mailing list