Project

General

Profile

Bug #855366

Qt: menus_sensitive() DISBAND key erroneously fallthroughs to CONNECT_RAIL

Added by Marko Lindqvist 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
gui-qt
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Seen with clang and -Wimplicit-fallthrough:

../../../../src/client/gui-qt/menu.cpp:2225:7: error: unannotated fall-through between switch labels
[-Werror,-Wimplicit-fallthrough]
case CONNECT_RAIL:
^
../../../../src/client/gui-qt/menu.cpp:2225:7: note: insert '[[clang::fallthrough]];' to silence this
warning
case CONNECT_RAIL:
^
[[clang::fallthrough]];
../../../../src/client/gui-qt/menu.cpp:2225:7: note: insert 'break;' to avoid fall-through
case CONNECT_RAIL:
^
break;

History

#1 Updated by Marko Lindqvist 6 months ago

#2 Updated by Marko Lindqvist 6 months ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

Also available in: Atom PDF