From: Richard Trieu Date: Wed, 14 Jan 2015 01:50:12 +0000 (+0000) Subject: Disable -Wunknown-pragmas in a test so that Clang without -Wself-move will not X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1bcf09e58937aebad8bf905a7a1aeb20789f90ec;p=oota-llvm.git Disable -Wunknown-pragmas in a test so that Clang without -Wself-move will not complain that the flag doesn't exist. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225931 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ADT/APIntTest.cpp b/unittests/ADT/APIntTest.cpp index a6578869022..3b7ac5b8940 100644 --- a/unittests/ADT/APIntTest.cpp +++ b/unittests/ADT/APIntTest.cpp @@ -679,6 +679,9 @@ TEST(APIntTest, nearestLogBase2) { } #if defined(__clang__) +// Disable the pragma warning from versions of Clang without -Wself-move +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-pragmas" // Disable the warning that triggers on exactly what is being tested. #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wself-move" @@ -701,5 +704,6 @@ TEST(APIntTest, SelfMoveAssignment) { } #if defined(__clang__) #pragma clang diagnostic pop +#pragma clang diagnostic pop #endif }