Ticket #46372

FC_PTR_TO_INT() not working under c23

Eröffnet am: 2022-12-27 12:22 Letztes Update: 2023-01-13 15:22

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

Details

In C23 mode I've got compile failure from client options hash handling, that seems to be down to bad cast by FC_PTR_TO_INT()

Ticket-Verlauf (3/7 Historien)

2022-12-27 12:22 Aktualisiert von: cazfi
  • New Ticket "FC_PTR_TO_INT() not working under c23" created
2022-12-29 14:42 Aktualisiert von: cazfi
  • Meilenstein Update from (Keine) to 3.0.6 (closed)
  • Komponente Update from (Keine) to General
2023-01-07 22:22 Aktualisiert von: cazfi
Kommentar

The problem is not the casts made by FC_PTR_TO_INT(), but the parameter passed to it; there's a bad cast to get PTR for FC_PTR_TO_INT() to cast forward.

Yes, these macros within macros ending up making four or five casts from one type to the next might be a bit insane, but I'm for just fixing them in the stable branches. Any bigger restructuring should take place in development branch only.

2023-01-07 23:34 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
Kommentar

Also to S2_6.

2023-01-13 15:22 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