tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

current gcc 12.4.0 bug



I'm running current and stumbled on that:

exec.c: In function 'shellexec':
exec.c:145:46: error: '%s' directive argument is null
[-Werror=format-overflow=]
  145 |         (void)fprintf(stderr, "do_qfilename (%s): %d\n",
      |                                              ^~
cc1: all warnings being treated as errors

While the argument is not NULL.

It's a bug in gcc see:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90036

With this around, how can we be sure that the generated code is
correct?
-- 
        Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


Home | Main Index | Thread Index | Old Index