#65 [parser.cpp:90]: (warning) Variable 'l' is reassigned a value before the old one has been used. 'break;' missing?

v1.0_(example)
closed-fixed
None
6
2014-02-14
2014-02-14
dcb
No

Source code is

switch (errLevel)
{
case NoError: l="No Error";
case Warning: l="Warning";
case Aborted: l="Aborted";
}

Suggest add missing breaks.

Discussion

  • In Silmaril

    In Silmaril - 2014-02-14
    • status: open --> closed-fixed
    • assigned_to: In Silmaril
    • Priority: 5 --> 6
     
  • In Silmaril

    In Silmaril - 2014-02-14

    Thanks. Fix pushed to git.

     

Log in to post a comment.