From 4b05db4286441d114ce2a6a55322d934c452faeb Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Sun, 15 Oct 2017 20:46:12 +0000 Subject: [PATCH] Really do make sure that last_write_time.pass.cpp still works with old clang I *did* try to check that such kind of an issue was not introduced by the rL315874, but clearly i failed to finish verification. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@315876 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../fs.op.last_write_time/last_write_time.pass.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp b/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp index 49da6fbd2..cd7a556fa 100644 --- a/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp +++ b/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp @@ -89,9 +89,11 @@ bool TestSupportsNegativeTimes() { } // In some configurations, the comparison is tautological and the test is valid. -// We disable the warning so that we can actually test it regardless. +// We disable the warning so that we can actually test it regardless. Also, that +// diagnostic is pretty new, so also don't fail if old clang does not support it #if defined(__clang__) #pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-warning-option" #pragma clang diagnostic ignored "-Wtautological-constant-compare" #endif @@ -123,9 +125,11 @@ static const bool SupportsMaxTime = TestSupportsMaxTime(); } // end namespace // In some configurations, the comparison is tautological and the test is valid. -// We disable the warning so that we can actually test it regardless. +// We disable the warning so that we can actually test it regardless. Also, that +// diagnostic is pretty new, so also don't fail if old clang does not support it #if defined(__clang__) #pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-warning-option" #pragma clang diagnostic ignored "-Wtautological-constant-compare" #endif