mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
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:
parent
37c34c5ca9
commit
c242b25364
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user