File.cpp:436: missing break

Bug #1221369 reported by dcb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EqualX
Fix Committed
Medium
Unassigned

Bug Description

[src/File.cpp:436] -> [src/File.cpp:439]: (warning) Variable 'envBegin' is reassigned a value before the old one has been used. 'break;' missing?
[src/File.cpp:437] -> [src/File.cpp:440]: (warning) Variable 'envEnd' is reassigned a value before the old one has been used. 'break;' missing?

Source code is

    case LATEX_ENV_MODE_ALIGN:
        envBegin = "\\begin{align*}";
        envEnd = "\\end{align*}";
    case LATEX_ENV_MODE_TEXT:
        envBegin = "";
        envEnd = "";
        break;

Suggest add missing break

Related branches

Changed in equalx:
importance: Undecided → Medium
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.