Skip to content

Commit

Permalink
[libcxx] Suppress unused warning on apple.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
donhinton committed Dec 25, 2017
1 parent 3a5a48b commit 1ec1a95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libcxx/src/experimental/filesystem/operations.cpp
Original file line number Diff line number Diff line change
@@ -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; }

0 comments on commit 1ec1a95

Please sign in to comment.