Skip to content
Commit 51c18bac authored by Per Astrand's avatar Per Astrand
Browse files

Silence gcc > 7 type-limits warning

GCC > 7 warns that the selected type of the enum makes the comparisson
unneccesary. Since the selected enum fits in an integer, the input
parameter is casted to an integer to make the comparison valid and
asserts that the enum is within valid enum values (which we know are
monotonically growing).

Change-Id: Id81799e2ac43a83b998541ce7531d2039202cd62
parent c801901c
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