[libc++] Fix tests failing with Clang after removing GCC warnings

This commit is contained in:
Louis Dionne 2020-10-30 14:55:37 -04:00
parent 00da38ce2d
commit 81b6aa0e27
3 changed files with 4 additions and 4 deletions

View File

@ -198,7 +198,7 @@ private:
using chrono::duration;
using chrono::duration_cast;
using TimeSpec = std::timespec;
using TimeSpec = timespec;
using StatT = struct stat;
template <class FileTimeT, class TimeT,

View File

@ -33,7 +33,7 @@
using namespace fs;
using TimeSpec = std::timespec;
using TimeSpec = timespec;
using StatT = struct stat;
using Sec = std::chrono::duration<file_time_type::rep>;

View File

@ -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