Opened 3 years ago

Closed 3 years ago

Last modified 12 months ago

#7168 closed defect (fixed)

MADS: Misleading indentation in nebular/nebular_scenes2.cpp

Reported by: DrMcCoy Owned by: dreammaster
Priority: low Component: Engine: MADS
Keywords: Cc:
Game:

Description

GCC 6's -Wmisleading-indentation flags the break-statement in engines/mads/nebular/nebular_scenes2.cpp:106 to be misleadingly indented.

Specifically, this break-statement is indented as if it belonged inside the else-statement in line 104. However, due to the lack of curly braces on that else-statement, this break-statement is not within the scope of that else-statement.

Ticket imported from: bugs/7168.

Change History (2)

comment:1 by dreammaster, 3 years ago

Owner: set to dreammaster
Resolution: fixed
Status: newclosed

comment:2 by digitall, 12 months ago

Component: Engine: MADS
Note: See TracTickets for help on using tickets.