#44827: ucrt64: get_lanserver_announcement(): readfs used uninitialized Open Date: 2022-06-14 06:55 Last Update: 2022-06-14 07:27 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 07:27 Updated by: cazfi Comment: Reply To cazfi In file included from C:/freeciv/msys2/prod/msys2-freeciv-win64-220611/mingw64/include/winsock2.h:56 Likely the problem is in that "/mingw64/". And likely that somehow comes from the fact that our msys2 Makefile (and the win_arch.sh it uses) understands only two different systems; win32 and win64. --------------------------------------------------------------------- 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