diff options
author | Tom Rini | 2020-06-04 15:45:08 -0400 |
---|---|---|
committer | Lokesh Vutla | 2020-06-16 17:00:02 +0530 |
commit | e76e85c9f4728e4765c90cef4422d7c9172161c7 (patch) | |
tree | da470caf7cc04c1fcbb9b05ae6935d274d28b0d6 /tools/imagetool.h | |
parent | 5b9ee0fc6f9adb05eefa457a752626cb22cca958 (diff) |
board: ti: common: Fix pointer-bool-conversion warnings
When building this code with clang-10 a number of warnings will be
generated along the lines of:
warning: address of array 'ep->version' will always evaluate to 'true'
Convert these checks to checking the strlen of the part of the array we
care about. As this array will be null terminated previously by us,
this is safe.
Cc: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'tools/imagetool.h')
0 files changed, 0 insertions, 0 deletions