diff options
Diffstat (limited to 'include')
-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; } |