diff options
author | Per Åstrand <per.astrand@arm.com> | 2020-09-28 11:25:36 +0200 |
---|---|---|
committer | Per Åstrand <per.astrand@arm.com> | 2020-09-28 12:45:05 +0200 |
commit | 51c18bac97dc3ae3393a786999f4602ca11c22f7 (patch) | |
tree | 9603d63c57e86612e135e82901ff50f9e1591a3e /include/ethosu_device.h | |
parent | c801901c992ca632a0beb1eeb78b42c910e2e0aa (diff) | |
download | ethos-u-core-driver-51c18bac97dc3ae3393a786999f4602ca11c22f7.tar.gz |
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
Diffstat (limited to 'include/ethosu_device.h')
0 files changed, 0 insertions, 0 deletions