Skip to content
Commit 37deb317 authored by Tom Hughes's avatar Tom Hughes Committed by Benjamin Cabé
Browse files

samples: modules: lvgl: transparency: Fix supported pixel format check



Found while building with clang and -Wtautological-compare:

samples/modules/lvgl/screen_transparency/src/main.c:47:45: error:
bitwise or with non-zero value always evaluates to true
[-Werror,-Wtautological-bitwise-compare]

if (!(display_caps.supported_pixel_formats | PIXEL_FORMAT_ARGB_8888)) {
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: default avatarTom Hughes <tomhughes@chromium.org>
parent 8cf01483
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment