Skip to content
Commit 3cb6a1b9 authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

OMAPDSS: VRFB: remove compiler warnings when CONFIG_BUG=n



If CONFIG_BUG is not enabled, BUG() does not stop the execution. Many
places in code expect the execution to stop, and this causes compiler
warnings about uninitialized variables and returning from a non-void
function without a return value.

This patch fixes the warnings by initializing the variables and
returning properly after BUG() lines. However, the behaviour is still
undefined after the BUG, but this is the choice the user makes when
using CONFIG_BUG=n.

Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 4a75cb85
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment