Replace FALLTHROUGH macro by C++17 [[fallthrough]]
This attribute is now part of the standard we target so we no longer need compiler-specific hacks. Also enables -Wimplicit-fallthrough for Clang now that we can properly support it. It's already on by default for GCC's -Wextra. Fixes new warnings raised by Clang's -Wimplicit-fallthrough.
This commit is contained in:
@ -1020,7 +1020,7 @@ int Tree::compute_item_height(TreeItem *p_item) const {
|
||||
int check_icon_h = cache.checked->get_height();
|
||||
if (height < check_icon_h)
|
||||
height = check_icon_h;
|
||||
FALLTHROUGH;
|
||||
[[fallthrough]];
|
||||
}
|
||||
case TreeItem::CELL_MODE_STRING:
|
||||
case TreeItem::CELL_MODE_CUSTOM:
|
||||
|
||||
Reference in New Issue
Block a user