mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 12:16:07 +00:00
Disable -Wunknown-pragmas in a test so that Clang without -Wself-move will not
complain that the flag doesn't exist. llvm-svn: 225931
This commit is contained in:
parent
a203ca61af
commit
a64949dfb8
@ -679,6 +679,9 @@ TEST(APIntTest, nearestLogBase2) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__clang__)
|
#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.
|
// Disable the warning that triggers on exactly what is being tested.
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wself-move"
|
#pragma clang diagnostic ignored "-Wself-move"
|
||||||
@ -701,5 +704,6 @@ TEST(APIntTest, SelfMoveAssignment) {
|
|||||||
}
|
}
|
||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user