diff --git a/include/etl/u8string.h b/include/etl/u8string.h index f767cd749..9d8b94587 100644 --- a/include/etl/u8string.h +++ b/include/etl/u8string.h @@ -454,6 +454,7 @@ namespace etl /// Hash function. //************************************************************************* #if ETL_USING_8BIT_TYPES +#include "private/diagnostic_useless_cast_push.h" template <> struct hash { @@ -483,6 +484,7 @@ namespace etl reinterpret_cast(text.data() + text.size())); } }; +#include "private/diagnostic_pop.h" #endif //***************************************************************************