Suppress some harmless clang warnings in a Catch header
Just avoid harmless but annoying warnings in catch_impl.hpp when using clang.
This commit is contained in:
@@ -18,12 +18,19 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Suppress some warnings in catch_impl.hpp.
|
||||||
|
wxCLANG_WARNING_SUPPRESS(missing-braces)
|
||||||
|
wxCLANG_WARNING_SUPPRESS(logical-op-parentheses)
|
||||||
|
|
||||||
// This file needs to get the CATCH definitions in addition to the usual
|
// This file needs to get the CATCH definitions in addition to the usual
|
||||||
// assertion macros declarations from catch.hpp included by testprec.h.
|
// assertion macros declarations from catch.hpp included by testprec.h.
|
||||||
// Including an internal file like this is ugly, but there doesn't seem to be
|
// Including an internal file like this is ugly, but there doesn't seem to be
|
||||||
// any better way, see https://github.com/philsquared/Catch/issues/1061
|
// any better way, see https://github.com/philsquared/Catch/issues/1061
|
||||||
#include "internal/catch_impl.hpp"
|
#include "internal/catch_impl.hpp"
|
||||||
|
|
||||||
|
wxCLANG_WARNING_RESTORE(missing-braces)
|
||||||
|
wxCLANG_WARNING_RESTORE(logical-op-parentheses)
|
||||||
|
|
||||||
// This probably could be done by predefining CLARA_CONFIG_MAIN, but at the
|
// This probably could be done by predefining CLARA_CONFIG_MAIN, but at the
|
||||||
// point where we are, just define this global variable manually.
|
// point where we are, just define this global variable manually.
|
||||||
namespace Catch { namespace Clara { UnpositionalTag _; } }
|
namespace Catch { namespace Clara { UnpositionalTag _; } }
|
||||||
|
Reference in New Issue
Block a user