summaryrefslogtreecommitdiff
path: root/test/std/containers/unord/unord.set/incomplete.pass.cpp
diff options
context:
space:
mode:
authorStephan T. Lavavej <stl@exchange.microsoft.com>2017-01-18 20:09:56 +0000
committerStephan T. Lavavej <stl@exchange.microsoft.com>2017-01-18 20:09:56 +0000
commitc3564b92bcaa73fefde1cf5f7e159069f66f797c (patch)
treeb6b3b547e3bd580016434385fd5c8fb5ef367991 /test/std/containers/unord/unord.set/incomplete.pass.cpp
parent0d4bd61d7836006db2d5d811a864228ffc18083d (diff)
downloadlibcxx-c3564b92bcaa73fefde1cf5f7e159069f66f797c.tar.gz
[libcxx] [test] Fix MSVC warnings C4127 and C6326 about constants.
MSVC has compiler warnings C4127 "conditional expression is constant" (enabled by /W4) and C6326 "Potential comparison of a constant with another constant" (enabled by /analyze). They're potentially useful, although they're slightly annoying to library devs who know what they're doing. In the latest version of the compiler, C4127 is suppressed when the compiler sees simple tests like "if (name_of_thing)", so extracting comparison expressions into named constants is a workaround. At the same time, using std::integral_constant avoids C6326, which doesn't look at template arguments. test/std/containers/sequences/vector.bool/emplace.pass.cpp Replace 1 == 1 with true, which is the same as far as the library is concerned. Fixes D28837. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@292432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/std/containers/unord/unord.set/incomplete.pass.cpp')
0 files changed, 0 insertions, 0 deletions