diff options
| author | Morwenn | 2020-10-29 15:04:26 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-11-02 16:01:17 +0100 |
| commit | dd5652933ae181226eac0177e1b6ab0d988bdec6 (patch) | |
| tree | 9345464914b1c4604f7cad9f13b6f532c15d7b3b /tests/SelfTest/IntrospectiveTests/UniquePtr.tests.cpp | |
| parent | 3a15433d527269dcb9fc6452f279626173b94f1d (diff) | |
| download | catch3-dd5652933ae181226eac0177e1b6ab0d988bdec6.tar.gz | |
Silence -Wuseless-cast warning with GCC10
With GCC 10, the `static_cast<bool>` triggers the -Wuseless-cast warning. This commit changes the cast into `static_cast<const bool&>`: it achieves the same thing but doesn't trigger the warning thanks to the "gratuitous" type conversion to `const bool&`. As per references rules, `const bool&` should bind to anything, be it `const` or not, an rvalue or an lvalue, so I doubt that this change is breaking anything.
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests/UniquePtr.tests.cpp')
0 files changed, 0 insertions, 0 deletions