[Freeciv-tickets] [freeciv] #45853: S3_0 array-bounds compiler error in Xenial

Back to archive index
OSDN Ticket System norep****@osdn*****
Thu Oct 13 23:05:52 JST 2022


#45853: S3_0 array-bounds compiler error in Xenial

  Open Date: 2022-10-13 16:56
Last Update: 2022-10-13 17:05

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

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

Last Changes/Comment on this Ticket:
2022-10-13 17:05 Updated by: cazfi
 * Owner Update from (None) to cazfi
 * Resolution Update from None to Accepted

Comment:

Patch to push to S3_0 only attached.

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

      Reporter: cazfi
         Owner: cazfi
          Type: Bugs
        Status: Open [Owner assigned]
      Priority: 8
     MileStone: 3.0.5
     Component: General
      Severity: 5 - Medium
    Resolution: Accepted
---------------------------------------------------------------------

Ticket details:

Now that we've again enabled array-bounds warnings in S3_0 also, build on Xenial seems to fail. It complains about activity_id_exists(). I don't see anything wrong with the function, and the fact that no newer compiler (with better heuristics) gives such warning leads me to believe it's a false positive. There's no similar problem with other branches.
So I think it's enough to just rearrange the code so that gcc-5.4 no longer complains about it, and not to look for an actual bug.
Will treat as a build emergency.

-- 
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/45853
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45853



More information about the Freeciv-tickets mailing list
Back to archive index