-
-
Notifications
You must be signed in to change notification settings - Fork 510
Compile fails when defining ETL_HAS_CONSTEXPR_ENDIANESS=1 #1355
Copy link
Copy link
Open
Description
etl/unaligned_type.h has several places with following:
#if ETL_HAS_CONSTEXPR_ENDIANESS
if ETL_IF_CONSTEXPR(Endian == etl::endianness::value())
#else
if (Endian_ != etl::endianness::value())
#endif
...
Endian -> Endian_ .
Also, there are warnings about:
".../include/etl/unaligned_type.h", line 421: remark #195-D: zero used for undefined preprocessing identifier "ETL_HAS_CONSTEXPR_ENDIANESS"
when manually defining -DETL_ENDIAN_NATIVE=1 (for TI compiler, big-endian target), but not defining ETL_HAS_CONSTEXPR_ENDIANESS.
Should we guard by #ifdef ETL_HAS_CONSTEXPR_ENDIANESS ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels