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
This commit is contained in:
@@ -490,7 +490,11 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo(sal_Int32 _parameterIndex, c
|
|||||||
setDouble( _parameterIndex, nValue );
|
setDouble( _parameterIndex, nValue );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#if defined __GNUC__ && __GNUC__ >= 7
|
||||||
|
[[fallthrough]];
|
||||||
|
#else
|
||||||
BOOST_FALLTHROUGH;
|
BOOST_FALLTHROUGH;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
case DataType::CHAR:
|
case DataType::CHAR:
|
||||||
@@ -517,7 +521,11 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo(sal_Int32 _parameterIndex, c
|
|||||||
setFloat(_parameterIndex,nValue);
|
setFloat(_parameterIndex,nValue);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#if defined __GNUC__ && __GNUC__ >= 7
|
||||||
|
[[fallthrough]];
|
||||||
|
#else
|
||||||
BOOST_FALLTHROUGH;
|
BOOST_FALLTHROUGH;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
case DataType::DOUBLE:
|
case DataType::DOUBLE:
|
||||||
|
Reference in New Issue
Block a user