forked from OSchip/llvm-project
[libc++] Fix tests failing with Clang after removing GCC warnings
This commit is contained in:
parent
00da38ce2d
commit
81b6aa0e27
|
@ -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,
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue