diff options
| author | Andre Przywara <[email protected]> | 2025-03-27 15:33:05 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-04-08 16:23:51 -0600 |
| commit | 2c22efbb37b00fc353ffee56bf0b54c38639e08e (patch) | |
| tree | 8655bd9caa77f1065d5ebe8f00400938c59b9e6f /drivers | |
| parent | 4d108c884b5bd5cef13fa1eb11a65eefd4c48d3f (diff) | |
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 <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/video-uclass.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index ff4f2199585..c684c994b61 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -245,6 +245,7 @@ int video_fill(struct udevice *dev, u32 colour) *ppix++ = colour; break; } + fallthrough; case VIDEO_BPP32: if (CONFIG_IS_ENABLED(VIDEO_BPP32)) { u32 *ppix = priv->fb; @@ -254,6 +255,7 @@ int video_fill(struct udevice *dev, u32 colour) *ppix++ = colour; break; } + fallthrough; default: memset(priv->fb, colour, priv->fb_size); break; |
