[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
libcxx
src/filesystem
test/std
input.output/filesystems/fs.op.funcs/fs.op.last_write_time
utilities/meta/meta.trans/meta.trans.other

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,8 +19,8 @@
// 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
struct wat struct wat