summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-12-19 08:34:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-12-19 13:54:44 +0100
commit748627dc7e88a0ec375f4e103906929cf99eb676 (patch)
tree5aba1bdb45b7c7554ad98ee16ba792f536571605 /svx
parent2c2d0c07b2120c5fe4333e7fed12bd59996c2972 (diff)
Silence -Wunknown-attributes with Clang <= 3.6
Change-Id: I2d1ec919da5b26b231598e01a52a1508c72ab815 Reviewed-on: https://gerrit.libreoffice.org/46765 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
index 9572e7ac491e..4d2e3ffbbcfd 100644
--- a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <config_clang.h>
#include <svx/EnhancedCustomShape2d.hxx>
#include <rtl/ustring.hxx>
#include <osl/diagnose.h>
@@ -462,7 +465,7 @@ public:
mpSecondArg( rSecondArg )
{
}
-#if defined(__clang__) || (defined (__GNUC__) && __GNUC__ >= 8)
+#if (defined(__clang__) && CLANG_VERSION >=30700) || (defined (__GNUC__) && __GNUC__ >= 8)
//GetEquationValueAsDouble calls isFinite on the result
__attribute__((no_sanitize("float-divide-by-zero")))
#endif