[Freeciv-tickets] [freeciv] #46306: pf_attack_possible() int-conversion warning

アーカイブの一覧に戻る
OSDN Ticket System norep****@osdn*****
Tue Dec 20 13:11:20 JST 2022


#46306: pf_attack_possible() int-conversion warning

  Open Date: 2022-12-18 08:08
Last Update: 2022-12-20 13:11

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/46306
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46306

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-12-20 13:11 Updated by: Anonymous

Comment:

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.


---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: General
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket 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 information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/46306
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46306



More information about the Freeciv-tickets mailing list
アーカイブの一覧に戻る