u-boot/arch/sandbox
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 sandbox: Fix comparison of unsigned enum expression warning 2017-06-08 20:21:59 -06:00
dts dm: blk: Improve block device claiming 2017-06-01 07:03:05 -06:00
include/asm sandbox: Make u-boot-sandbox.h a private header 2017-06-05 11:02:32 -04:00
lib libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORY 2016-12-02 20:54:34 -07:00
config.mk sandbox: Support building an SPL image 2016-07-14 20:40:24 -06:00
Kconfig drivers/pci/Kconfig: Add PCI 2016-10-27 20:33:56 -04:00
Makefile Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00