In endianness.h, the int static_casts to the ETL_ENDIAN_LITTLE/BIG/NATIVE values in enum enum_type (inside struct endian) are producing warnings when compiled with -Wuseless-castin gcc.
It looks like the warnings go away when the casts are changed to functional casts (e.g. int{ETL_ENDIAN_LITTLE}), but that only works with C++11. I can't tell, but it looks like the literal values would be of type int anyway?
In endianness.h, the int
static_cast
s to theETL_ENDIAN_LITTLE/BIG/NATIVE
values inenum enum_type
(insidestruct endian
) are producing warnings when compiled with-Wuseless-cast
in gcc.It looks like the warnings go away when the casts are changed to functional casts (e.g.
int{ETL_ENDIAN_LITTLE}
), but that only works with C++11. I can't tell, but it looks like the literal values would be of typeint
anyway?