aboutsummaryrefslogtreecommitdiff
path: root/libfdt/fdt_strerror.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2020-10-01 17:46:29 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2020-10-02 10:33:01 +1000
commit6c2be7d85315008be974984c0c86a8c8e55adeea (patch)
treee111f609f0956e4e4876b0f23dd5d118079e397b /libfdt/fdt_strerror.c
parent82525f41d59ec57a4e9325796a6f1baefc036236 (diff)
downloaddtc-6c2be7d85315008be974984c0c86a8c8e55adeea.zip
dtc-6c2be7d85315008be974984c0c86a8c8e55adeea.tar.gz
dtc-6c2be7d85315008be974984c0c86a8c8e55adeea.tar.bz2
libfdt: fdt_get_string(): Fix sequential write comparison warnings
With -Wsign-compare, compilers warn about a mismatching signedness in comparisons in fdt_get_string(). Introduce a new usigned variable, which holds the actual (negated) stroffset value, so we avoid negating all the other variables and have proper types everywhere. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Message-Id: <20201001164630.4980-6-andre.przywara@arm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt/fdt_strerror.c')
0 files changed, 0 insertions, 0 deletions