forked from OSchip/llvm-project
[libc++] Fix tests failing with Clang after removing GCC warnings
This commit is contained in:
parent
00da38ce2d
commit
81b6aa0e27
libcxx
src/filesystem
test/std
input.output/filesystems/fs.op.funcs/fs.op.last_write_time
utilities/meta/meta.trans/meta.trans.other
|
@ -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,
|
||||||
|
|
|
@ -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>;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue