From 1ec1a9558a37cce5ae084482d19a8a4506b3feb3 Mon Sep 17 00:00:00 2001 From: Don Hinton Date: Mon, 25 Dec 2017 05:33:42 +0000 Subject: [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 --- libcxx/src/experimental/filesystem/operations.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libcxx/src') 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; } -- cgit v1.2.3