diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-15 12:29:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-15 12:29:14 +0100 |
commit | 897c8af7948aae8f3e3014f9f23846ef1ca5c6cd (patch) | |
tree | 8f7ba61c7ad80b023889a437b9a54a131700715b | |
parent | 0546e652adadeb47997306380d427ac16ab17608 (diff) |
Silence bogus GCC 4.9 -Werror=strict-overflow
Change-Id: Ie116cee9282b3cc73e3bbb9b3fbaa50b1e8e974a
-rw-r--r-- | include/basegfx/range/basicrange.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/basegfx/range/basicrange.hxx b/include/basegfx/range/basicrange.hxx index 87fb5bac64d0..bea40dd3ded2 100644 --- a/include/basegfx/range/basicrange.hxx +++ b/include/basegfx/range/basicrange.hxx @@ -158,7 +158,16 @@ namespace basegfx } else { +// Silence over-eager warning emitted at least by GCC 4.9.2 in certain +// instantiations: +#if defined __GNUC__ && !defined __clang__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-overflow" +#endif if(nValue < mnMinimum) +#if defined __GNUC__ && !defined __clang__ +#pragma GCC diagnostic pop +#endif { mnMinimum = nValue; } |