[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;
using chrono::duration_cast; using chrono::duration_cast;
using TimeSpec = std::timespec; using TimeSpec = timespec;
using StatT = struct stat; using StatT = struct stat;
template <class FileTimeT, class TimeT, template <class FileTimeT, class TimeT,

View File

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

View File

@ -19,7 +19,7 @@
// Ignore warnings about volatile in parameters being deprecated. // Ignore warnings about volatile in parameters being deprecated.
// We know it is, but we still have to test it. // We know it is, but we still have to test it.
#ifdef __GNUC__ #if defined(__GNUC__) && !defined(__clang__)
# pragma GCC diagnostic ignored "-Wvolatile" # pragma GCC diagnostic ignored "-Wvolatile"
#endif #endif