mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-14 19:26:58 +02:00
video: annotate switch/case fall-through
The generic DM video code uses an implicit switch/case fallthrough to provide fallback code paths when certain colour depths are not enabled. Add our "fallthrough;" statement-like macro to the video_fill() function to avoid a warning when GCC's -Wimplicit-fallthrough warning option is enabled. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
4d108c884b
commit
2c22efbb37
@ -245,6 +245,7 @@ int video_fill(struct udevice *dev, u32 colour)
|
|||||||
*ppix++ = colour;
|
*ppix++ = colour;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
fallthrough;
|
||||||
case VIDEO_BPP32:
|
case VIDEO_BPP32:
|
||||||
if (CONFIG_IS_ENABLED(VIDEO_BPP32)) {
|
if (CONFIG_IS_ENABLED(VIDEO_BPP32)) {
|
||||||
u32 *ppix = priv->fb;
|
u32 *ppix = priv->fb;
|
||||||
@ -254,6 +255,7 @@ int video_fill(struct udevice *dev, u32 colour)
|
|||||||
*ppix++ = colour;
|
*ppix++ = colour;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
fallthrough;
|
||||||
default:
|
default:
|
||||||
memset(priv->fb, colour, priv->fb_size);
|
memset(priv->fb, colour, priv->fb_size);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user