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