Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/ToStringVector.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2017-01-31 18:02:11 +0100
committerMartin Hořeňovský2017-01-31 18:02:11 +0100
commit0dabd951ba115f682e387d72f7f9866de824db0b (patch)
tree29ed55badd386ce271c23cf1f135aa95ba92752d /projects/SelfTest/ToStringVector.cpp
parent7ae96c710b579f8beb58d713e0e93192755bd37d (diff)
downloadcatch3-0dabd951ba115f682e387d72f7f9866de824db0b.tar.gz
expr is now cast to void in THROWS family of assertions.
This prevents Clang from complaining about unused value in expressions containing explicit casts used in the THROW assertion macro family. Example: `REQUIRE_THROWS_AS(static_cast<bool>(object), std::bad_cast);` would trigger `-Wunused-value` warning. Now it does not. Credits to Arto Bendiken, who submitted a PR almost 3 years ago, but his branch has since died and I was unable to merge it.
Diffstat (limited to 'projects/SelfTest/ToStringVector.cpp')
0 files changed, 0 insertions, 0 deletions