[Freeciv-tickets] [freeciv] #42885: Disable -Warray-bounds

Back to archive index
OSDN Ticket System norep****@osdn*****
Mon Sep 20 08:37:55 JST 2021


#42885: Disable -Warray-bounds

  Open Date: 2021-09-20 00:52
Last Update: 2021-09-20 02:37

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

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

Last Changes/Comment on this Ticket:
2021-09-20 02:37 Updated by: cazfi
 * Resolution Update from None to Accepted


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

      Reporter: cazfi
         Owner: (None)
          Type: Patches
        Status: Open
      Priority: 5 - Medium
     MileStone: 2.6.6
     Component: Bootstrap
      Severity: 5 - Medium
    Resolution: Accepted
---------------------------------------------------------------------

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



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