From 1d292943f08c52c7caa977248bef5605672fd9e6 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 1 Sep 2022 22:18:15 -0400 Subject: [PATCH] https://github.com/rusefi/rusefi/issues/4115 --- os/hal/lib/streams/chprintf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/os/hal/lib/streams/chprintf.c b/os/hal/lib/streams/chprintf.c index 1d0398a55..776fc5859 100644 --- a/os/hal/lib/streams/chprintf.c +++ b/os/hal/lib/streams/chprintf.c @@ -85,7 +85,10 @@ static const long pow10[FLOAT_PRECISION] = { static char *ftoa(char *p, float num, unsigned long precision) { long l; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-aliasing" if (rusefi_cisnan(num)) { +#pragma GCC diagnostic pop *p ++ = 'N'; *p ++ = 'a'; *p ++ = 'N';