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

Back to archive index
OSDN Ticket System norep****@osdn*****
Tue Jun 14 12:55:51 JST 2022


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

  Open Date: 2022-06-14 06:55
Last Update: 2022-06-14 06:55

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-14 06:55 Updated by: cazfi
 * New Ticket "ucrt64: get_lanserver_announcement(): readfs used uninitialized" created


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

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

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