Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3a1fa5e authored by Lloyd Pique's avatar Lloyd Pique
Browse files

[Composer] Fix compiler warnings

When included by SurfaceFlinger, there were various warnings in the
ComposerCommandBuffer headers for conversions with -Wconversion enabled
that necessitated disabling that warning for these headers. These have
been fixed by adding explicit static_casts to the needed integer type.

In addition "#warn" was not a valid preprocessor directive, as used at
the top of each file if LOG_TAG is not defined. This was replaced by a
correct "#warning" directive.

Finally, there were also some unused includes reported by in-editor
clangd checks. Those have been removed.

Flag: EXEMPT build and lint warnings only
Bug: None
Test: Builds

Change-Id: I4918a115fab76c9cebee1f9fcfbb841e6cef6690
parent 5dd455a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment