Work around compilation warning

Clang 12 (at least) misses the fact that tag is always initialized,
because the if/else sequence does cover all cases.

Initialize the variable although it is not required. It does not hurt
at least.
This commit is contained in:
Jean-Marc Lasgouttes 2021-07-16 18:27:15 +02:00
parent 37c34c5ca9
commit c242b25364

View File

@ -611,7 +611,7 @@ void InsetMathScript::mathmlize(MathMLStream & ms) const
if (!d && !u)
return;
const char * tag;
const char * tag = nullptr;
if (u && d)
tag = has_limits ? "munderover" : "msubsup";
else if (u)