Skip to content

Commit

Permalink
https://github.com/rusefi/rusefi/issues/4115
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Sep 2, 2022
1 parent 11c956e commit 639f3ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions os/hal/lib/streams/chprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 639f3ea

Please sign in to comment.