From 04211563f5264d3be62fb99ab21f2b6c3318010f Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 24 Nov 2023 10:23:12 +0000 Subject: [PATCH] Fix useless cast --- include/etl/u8string.h | 2 ++ 1 file changed, 2 insertions(+) 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 //***************************************************************************