[Freeciv-tickets] [freeciv] #44827: ucrt64: get_lanserver_announcement(): readfs used uninitialized

Back to archive index
OSDN Ticket System norep****@osdn*****
Sat Jun 25 01:04:18 JST 2022


#44827: ucrt64: get_lanserver_announcement(): readfs used uninitialized

  Open Date: 2022-06-14 06:55
Last Update: 2022-06-24 19:04

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

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

Last Changes/Comment on this Ticket:
2022-06-24 19:04 Updated by: cazfi
 * Status Update from Open to Closed
 * Resolution Update from Accepted to Fixed


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

      Reporter: cazfi
         Owner: cazfi
          Type: Bugs
        Status: Closed
      Priority: 5 - Medium
     MileStone: 3.1.0
     Component: Windows Installers
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

Ticket details:

I did first test to build using ucrt64 toolchain of msys2.
In file included from C:/freeciv/msys2/prod/msys2-freeciv-win64-220611/mingw64/include/winsock2.h:56,
from ../../../../utility/fc_prehdrs.h:30,
from ../../../../server/sernet.c:18:
C:/freeciv/msys2/prod/msys2-freeciv-win64-220611/mingw64/include/psdk_inc/_fd_types.h: In function 'get_lanserver_announcement':
C:/freeciv/msys2/prod/msys2-freeciv-win64-220611/mingw64/include/psdk_inc/_fd_types.h:77:48: error: 'readfs' may be used uninitialized [-Werror=maybe-uninitialized!]
77 |                 if (((fd_set *)(set))->fd_array[__i!] == (fd)) {         \
|                                                
../../../../server/sernet.c:1463:10: note: 'readfs' declared here
1463 |   fd_set readfs, exceptfs;
|          ~


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



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