summaryrefslogtreecommitdiffstats
path: root/libcxx/src/experimental/filesystem/operations.cpp
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
commit1ec1a9558a37cce5ae084482d19a8a4506b3feb3 (patch)
tree3593033d5b1b355146cf290c6075e40a3b114a16 /libcxx/src/experimental/filesystem/operations.cpp
parent3a5a48b571145030989b05062ceb81daa63bdc2d (diff)
downloadbcm5719-llvm-1ec1a9558a37cce5ae084482d19a8a4506b3feb3.tar.gz
bcm5719-llvm-1ec1a9558a37cce5ae084482d19a8a4506b3feb3.zip
[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 llvm-svn: 321435
Diffstat (limited to 'libcxx/src/experimental/filesystem/operations.cpp')
-rw-r--r--libcxx/src/experimental/filesystem/operations.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/src/experimental/filesystem/operations.cpp b/libcxx/src/experimental/filesystem/operations.cpp
index 1a514545cec..662fa7b8626 100644
--- a/libcxx/src/experimental/filesystem/operations.cpp
+++ b/libcxx/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; }
OpenPOWER on IntegriCloud