rockchip-linux / rkdeveloptool

GNU General Public License v2.0
159 stars 91 forks source link

Failure on non x86 arches (armv7/aarch64) #41

Closed nullr0ute closed 5 years ago

nullr0ute commented 5 years ago

This builds on x86_64 for some reason but fails when building on Arm, either aarch64 or ARMv7.

BUILDSTDERR: main.cpp: In function 'bool upgrade_loader(STRUCT_RKDEVICE_DESC&, char*)':
BUILDSTDERR: main.cpp:1915:13: error: comparison is always false due to limited range of data type [-Werror=type-limits]
BUILDSTDERR:  1915 |   if (index == -1) {
BUILDSTDERR:       |       ~~~~~~^~~~~
BUILDSTDERR: main.cpp:1939:13: error: comparison is always false due to limited range of data type [-Werror=type-limits]
BUILDSTDERR:  1939 |   if (index == -1) {
BUILDSTDERR:       |       ~~~~~~^~~~~
BUILDSTDERR: cc1plus: all warnings being treated as errors