Ticket #46306

pf_attack_possible() int-conversion warning

Eröffnet am: 2022-12-18 08:08 Letztes Update: 2023-01-02 12:32

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

Details

Testing with gcc-13 in c2x (likely c23) standard mode: S3_1 pf_attack_possible() assignment from is_non_allied_city_tile() to non_allied_city gives error about converting pointer to int.

Ticket-Verlauf (3/7 Historien)

2022-12-18 08:08 Aktualisiert von: cazfi
  • New Ticket "pf_attack_possible() int-conversio warning" created
2022-12-18 08:08 Aktualisiert von: cazfi
  • Summary Updated
2022-12-20 13:11 Aktualisiert von: None
Kommentar

The problem is that unlike their name suggest is_..._city_tile() functions return a pointer, not a boolean. That has worked under earlier C standard versions.

2022-12-29 11:14 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
  • Meilenstein Update from (Keine) to 3.0.6 (closed)
Kommentar

No S2_6 patch yet - have to confirm if one is needed. Review period for later branches running anyway.

2023-01-02 12:32 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

Please login to add comment to this ticket » Anmelden