> Care to share the warning? That last one you gave was for gcc 14.
No warnings with gcc 14.
Warnings with gcc 10 and ncurses installed.
No warnings with gcc 10 and no ncurses.
I have no idea what ncurses is doing.
gpsd-3.26.2~dev/gpsmon/monitor_nmea0183.c: In function
\u2018nmea_update\u2019:
gpsd-3.26.2~dev/gpsmon/monitor_nmea0183.c:313:17: warning: array subscript
-1 is outside array bounds of \u2018char[132]\u2019 [-Warray-bounds]
313 | *--s_end = '.';
| ^~~~~~~~
gpsd-3.26.2~dev/gpsmon/monitor_nmea0183.c:32:13: note: while referencing
\u2018sentences\u2019
32 | static char sentences[132];
| ^~~~~~~~~
[plus 2 more]
$ cc --version
cc (Debian 10.2.1-6) 10.2.1 20210110
--
These are my opinions. I hate spam.