[PATCH] D41248: [libcxx] Suppress unused warning on apple.
Don Hinton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 14 10:11:43 PST 2017
hintonda created this revision.
hintonda added a reviewer: EricWF.
This warning is already suppressed on non-apple platforms, so
this change just suppresses it on apple as well.
Repository:
rCXX libc++
https://reviews.llvm.org/D41248
Files:
src/experimental/filesystem/operations.cpp
Index: src/experimental/filesystem/operations.cpp
===================================================================
--- src/experimental/filesystem/operations.cpp
+++ 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.126989.patch
Type: text/x-patch
Size: 512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171214/2bd248a0/attachment.bin>
More information about the cfe-commits
mailing list