summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Hinton <hintonda@gmail.com>2017-12-25 05:33:42 +0000
committerDon Hinton <hintonda@gmail.com>2017-12-25 05:33:42 +0000
commit14d7b698bfd65044583ae34ab136bd84016cc16e (patch)
treeb892ad6579c4f738cc907bf00ce65cf222a7c36e
parentde0811ac71004db797d0bba7fba419dca5bad8aa (diff)
[libcxx] Suppress unused warning on apple.
Summary: This warning is already suppressed on non-apple platforms, so this change just suppresses it on apple as well. Reviewers: EricWF, lichray Reviewed By: lichray Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D41248 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@321435 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--src/experimental/filesystem/operations.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/experimental/filesystem/operations.cpp b/src/experimental/filesystem/operations.cpp
index 1a514545c..662fa7b86 100644
--- a/src/experimental/filesystem/operations.cpp
+++ b/src/experimental/filesystem/operations.cpp
@@ -512,6 +512,7 @@ using StatT = struct stat;
#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; }