Ticket #42885

Disable -Warray-bounds

Eröffnet am: 2021-09-20 06:52 Letztes Update: 2021-09-24 19:44

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
3

Details

gcc-12 development version gives an array-bounds warning about techtools.c code. I reported that to gcc bugtracker ( https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102405 ), but the report was deemed invalid; compiler does not have enough information to know that the warning is baseless so they consider it ok to show. Unfortunately I don't see any sensible way to rework the code so that it would not trigger the warning, and -Werror (which we use in development with --enable-debug) turns it to an error. The only solution seems to be to disable -Warray-bounds warnings completely.

Ticket-Verlauf (3/6 Historien)

2021-09-20 06:52 Aktualisiert von: cazfi
  • New Ticket "Disable -Warray-bounds" created
2021-09-20 08:37 Aktualisiert von: cazfi
  • Lösung Update from Keine to Accepted
2021-09-24 19:44 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Accepted to Gefixt

Bearbeiten

Please login to add comment to this ticket » Anmelden