[PATCH] D41248: [libcxx] Suppress unused warning on apple.

Phabricator via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 24 21:34:36 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL321435: [libcxx] Suppress unused warning on apple. (authored by dhinton, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D41248

Files:
  libcxx/trunk/src/experimental/filesystem/operations.cpp


Index: libcxx/trunk/src/experimental/filesystem/operations.cpp
===================================================================
--- libcxx/trunk/src/experimental/filesystem/operations.cpp
+++ libcxx/trunk/src/experimental/filesystem/operations.cpp
@@ -512,6 +512,7 @@
 
 #if defined(__APPLE__)
 TimeSpec extract_mtime(StatT const& st) { return st.st_mtimespec; }
+__attribute__((unused)) // Suppress warning
 TimeSpec extract_atime(StatT const& st) { return st.st_atimespec; }
 #else
 TimeSpec extract_mtime(StatT const& st) { return st.st_mtim; }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41248.128124.patch
Type: text/x-patch
Size: 551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171225/4d952bc6/attachment.bin>


More information about the cfe-commits mailing list