From 81b6aa0e27abc3037c84d1ff2065bf60207f9b8b Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Fri, 30 Oct 2020 14:55:37 -0400 Subject: [PATCH] [libc++] Fix tests failing with Clang after removing GCC warnings --- libcxx/src/filesystem/filesystem_common.h | 2 +- .../fs.op.last_write_time/last_write_time.pass.cpp | 2 +- .../meta/meta.trans/meta.trans.other/result_of11.pass.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libcxx/src/filesystem/filesystem_common.h b/libcxx/src/filesystem/filesystem_common.h index a7828ef38632..dc55f93da70c 100644 --- a/libcxx/src/filesystem/filesystem_common.h +++ b/libcxx/src/filesystem/filesystem_common.h @@ -198,7 +198,7 @@ private: using chrono::duration; using chrono::duration_cast; -using TimeSpec = std::timespec; +using TimeSpec = timespec; using StatT = struct stat; template ; diff --git a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp index 35abfa9cbeae..c9123fe18881 100644 --- a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp @@ -19,8 +19,8 @@ // Ignore warnings about volatile in parameters being deprecated. // We know it is, but we still have to test it. -#ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wvolatile" +#if defined(__GNUC__) && !defined(__clang__) +# pragma GCC diagnostic ignored "-Wvolatile" #endif struct wat