diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-07-04 14:56:18 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-07-04 14:56:53 +0200 |
commit | 4a77a818e0df010adcbefdcee0453ce0b16c0400 (patch) | |
tree | 6da47c8a7fc190c043b3134894467f5300dda2b9 /reportdesign | |
parent | eeb1030c6455d4b45bdd4e535a3eafd809716e54 (diff) |
reportdesign: -Werror,-Wc++1z-extensions
static_assert with no message is a C++1z extension
Change-Id: I90750252a5c0b856d74ca0ef3f999d457a9bb8be
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/misc/FunctionHelper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/reportdesign/source/ui/misc/FunctionHelper.cxx b/reportdesign/source/ui/misc/FunctionHelper.cxx index 349bc8d48061..9c9c7450f03e 100644 --- a/reportdesign/source/ui/misc/FunctionHelper.cxx +++ b/reportdesign/source/ui/misc/FunctionHelper.cxx @@ -219,7 +219,8 @@ sal_uInt32 FunctionDescription::getVarArgsStart() const // stability, ie. old code using the old VAR_ARGS and PAIRED_VAR_ARGS // values must still be handled. It is *not* sufficient to simply change // the values here. - static_assert(nVarArgs30 == VAR_ARGS && nPairedVarArgs60 == PAIRED_VAR_ARGS); + static_assert(nVarArgs30 == VAR_ARGS && nPairedVarArgs60 == PAIRED_VAR_ARGS, + "VAR_ARGS or PAIRED_VAR_ARGS has unexpected value"); if (nLen >= nPairedVarArgs60) nLen -= nPairedVarArgs60; else if (nLen >= nVarArgs30) |