Skip to content
Snippets Groups Projects
Commit 5769e2ed authored by Simon McVittie's avatar Simon McVittie
Browse files

graphics: Avoid -Wtype-limits for comparing unsigned enum >= 0


SrtWindowSystem has no valid negative values, so the compiler can use
an unsigned base type for it, which makes window_system >= 0
tautologous. SrtRenderingInterface has the same issue.

Use an unsigned cast to make the assertion obviously equally valid,
whether the enum's base type is signed or not.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 92576306
No related branches found
No related tags found
1 merge request!81Fix some compiler warnings
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