diff options
author | Don Hinton <hintonda@gmail.com> | 2017-12-25 08:33:42 +0300 |
---|---|---|
committer | Don Hinton <hintonda@gmail.com> | 2017-12-25 08:33:42 +0300 |
commit | 1ec1a9558a37cce5ae084482d19a8a4506b3feb3 (patch) | |
tree | 3593033d5b1b355146cf290c6075e40a3b114a16 /libcxx | |
parent | 3a5a48b571145030989b05062ceb81daa63bdc2d (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
llvm-svn: 321435
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/src/experimental/filesystem/operations.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/src/experimental/filesystem/operations.cpp b/libcxx/src/experimental/filesystem/operations.cpp index 1a514545cec5..662fa7b8626a 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; } |