From 5cf53b55e645c99a684401ec6f2f5ba9964c0b83 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Sun, 15 Oct 2017 21:52:53 +0000 Subject: [PATCH] Fix last_write_time.pass.cpp to work with clang-3.9 and earlier At least with clang-3.9 and earlier, -Wunknown-pragmas is also needed. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@315882 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 cd7a556fa..cdd177399 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 @@ -94,6 +94,7 @@ bool TestSupportsNegativeTimes() { #if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunknown-warning-option" +#pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wtautological-constant-compare" #endif @@ -130,6 +131,7 @@ static const bool SupportsMaxTime = TestSupportsMaxTime(); #if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunknown-warning-option" +#pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wtautological-constant-compare" #endif