Kaydet (Commit) 4a77a818 authored tarafından Michael Stahl's avatar Michael Stahl

reportdesign: -Werror,-Wc++1z-extensions

static_assert with no message is a C++1z extension

Change-Id: I90750252a5c0b856d74ca0ef3f999d457a9bb8be
üst eeb1030c
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment