Skip to content

Commit 81b6aa0

Browse files
committed
[libc++] Fix tests failing with Clang after removing GCC warnings
1 parent 00da38c commit 81b6aa0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libcxx/src/filesystem/filesystem_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ struct ErrorHandler {
198198
using chrono::duration;
199199
using chrono::duration_cast;
200200

201-
using TimeSpec = std::timespec;
201+
using TimeSpec = timespec;
202202
using StatT = struct stat;
203203

204204
template <class FileTimeT, class TimeT,

libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
using namespace fs;
3535

36-
using TimeSpec = std::timespec;
36+
using TimeSpec = timespec;
3737
using StatT = struct stat;
3838

3939
using Sec = std::chrono::duration<file_time_type::rep>;

libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

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

2626
struct wat

0 commit comments

Comments
 (0)