diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-02-22 20:47:50 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-02-23 00:52:50 +0100 |
commit | 2cf6ac6c507529884d6b8acfdc42f3bc1826b19d (patch) | |
tree | 9e5aeee8d4bb9523be3087d508a52d5c08e65335 /servers | |
parent | a7891b9d120e1cb49bcdcffc1107f692ed481d86 (diff) |
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.
Diffstat (limited to 'servers')
-rw-r--r-- | servers/visual/rasterizer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h index 3274b15975..3a219ec7e3 100644 --- a/servers/visual/rasterizer.h +++ b/servers/visual/rasterizer.h @@ -1080,7 +1080,7 @@ public: const Item::CommandTransform *transform = static_cast<const Item::CommandTransform *>(c); xf = transform->xform; found_xform = true; - FALLTHROUGH; + [[fallthrough]]; } default: { c = c->next; |