u-boot/arch/sandbox/cpu
Tom Rini e2bc87d41c sandbox: Fix comparison of unsigned enum expression warning
In os_dirent_get_typename() we are checking that type falls within the
known values of the enum os_dirent_t.  With clang-3.8 testing this value
as being >= 0 results in a warning as it will always be true.  This
assumes of course that we are only given valid data.  Given that we want
to sanity check the input, we change this to check that it falls within
the range of the first to the last entry in the given enum.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-06-08 20:21:59 -06:00
..
cpu.c bootstage: Require timer_get_boot_us() to be defined 2017-06-05 14:13:04 -04:00
eth-raw-os.c eth-raw-os.c: Add cast to bind(2) call 2016-01-15 08:09:47 -05:00
Makefile sandbox: Add basic SPL implementation 2016-07-14 20:40:24 -06:00
os.c sandbox: Fix comparison of unsigned enum expression warning 2017-06-08 20:21:59 -06:00
sdl.c sandbox: Add SDL library for LCD, keyboard, audio 2014-03-17 20:05:48 -06:00
spl.c spl: sandbox: Drop spl_board_announce_boot_device() 2016-12-09 08:40:18 -05:00
start.c board_f: sandbox: Move sandbox_early_getopt_check() into misc_init_f() 2017-04-05 13:55:07 -04:00
state.c sandbox: Add a way to reset sandbox state for tests 2017-06-01 07:03:09 -06:00
u-boot-spl.lds sandbox: Add a new sandbox_spl board 2016-07-14 20:40:24 -06:00
u-boot.lds Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00