Commit 053e0ec2 authored by Nico Weber's avatar Nico Weber

Work on getting things built with -Wimplicit-fallthrough. This CL was uploaded by git cl split.

Bug: 177475
R=xlai@chromium.org

Change-Id: Iaf7e65f74a55a20591ee49809210ef00548beb2d
Reviewed-on: https://chromium-review.googlesource.com/889784Reviewed-by: default avatarOlivia Lai <xlai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532874}
parent 7cff32b6
...@@ -560,8 +560,9 @@ const PaintFlags* CanvasRenderingContext2DState::GetFlags( ...@@ -560,8 +560,9 @@ const PaintFlags* CanvasRenderingContext2DState::GetFlags(
break; break;
default: default:
NOTREACHED(); NOTREACHED();
// no break on purpose: flags needs to be assigned to avoid compiler warning // no break on purpose: flags needs to be assigned to avoid compiler warning
// about uninitialized variable. // about uninitialized variable.
FALLTHROUGH;
case kFillPaintType: case kFillPaintType:
UpdateFillStyle(); UpdateFillStyle();
flags = &fill_flags_; flags = &fill_flags_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment