summaryrefslogtreecommitdiff
path: root/mysqlc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-31 10:55:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-31 10:55:16 +0100
commitccb1b1251cb7289f554df4cabe08b9ee4524a592 (patch)
tree3ad8c3d6819c08474d61d2dcd6e5207f6b0d489b /mysqlc
parentf6698138359e1f571aa6a464a40fb3bc85412d3a (diff)
Work around GCC 7 -Werror=implicit-fallthrough=
This is in !LIBO_INTERNAL_ONLY code, so cannot use SAL_FALLTHROUGH. And even on current <https://github.com/boostorg/config> master, BOOST_FALLTHROUGH does not yet support [[fallthrough]] for GCC 7. Change-Id: I5306c3949b13c517fe8ef643cf98c2021147617e
Diffstat (limited to 'mysqlc')
-rw-r--r--mysqlc/source/mysqlc_preparedstatement.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysqlc/source/mysqlc_preparedstatement.cxx b/mysqlc/source/mysqlc_preparedstatement.cxx
index eff5040f96d8..39edb3e20f10 100644
--- a/mysqlc/source/mysqlc_preparedstatement.cxx
+++ b/mysqlc/source/mysqlc_preparedstatement.cxx
@@ -490,7 +490,11 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo(sal_Int32 _parameterIndex, c
setDouble( _parameterIndex, nValue );
break;
}
+#if defined __GNUC__ && __GNUC__ >= 7
+ [[fallthrough]];
+#else
BOOST_FALLTHROUGH;
+#endif
}
case DataType::CHAR:
@@ -517,7 +521,11 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo(sal_Int32 _parameterIndex, c
setFloat(_parameterIndex,nValue);
break;
}
+#if defined __GNUC__ && __GNUC__ >= 7
+ [[fallthrough]];
+#else
BOOST_FALLTHROUGH;
+#endif
}
case DataType::DOUBLE: