Project

General

Profile

Actions

Bug #2355

open

stdinhand.c gnu-folding-constant warning on mac

Added by Marko Lindqvist 4 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Server
Target version:
-
Start date:
10/10/2026
Due date:
% Done:

0%

Estimated time:

Description

mac-meson CI job (with a patch to enable werror):

FAILED: [code=1] libfc_server.a.p/server_stdinhand.c.o 
cc -Ilibfc_server.a.p -I. -I.. -I../dependencies/luasql/src -I../dependencies/tinycthread -I../dependencies/tolua-5.2/include -I../dependencies/cvercmp -I../utility -I../common -I../common/networking -I../common/scriptcore -I../common/aicore -I../server -I../server/advisors -I../server/scripting -I../server/generator -I../server/ruleset -I../server/savegame -I../ai -I../ai/classic -I/opt/homebrew/include/lua -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/readline/include -fdiagnostics-color=always -Wall -Winvalid-pch -Werror -O0 -g -Wnested-externs -Wmissing-declarations -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wformat -Wformat-security -Wshadow -Wold-style-definition -Wtype-limits -Wimplicit-fallthrough -Wshadow -DHAVE_CONFIG_H -MD -MQ libfc_server.a.p/server_stdinhand.c.o -MF libfc_server.a.p/server_stdinhand.c.o.d -o libfc_server.a.p/server_stdinhand.c.o -c ../server/stdinhand.c
../server/stdinhand.c:6353:31: error: variable length array folded to constant array as an extension [-Werror,-Wgnu-folding-constant]
 6353 |     const char *unique_ipaddr[MIN_UNIQUE_CONNS];
      |                               ^~~~~~~~~~~~~~~~
1 error generated.


Related issues 1 (1 open — 0 closed)

Blocks Feature #2294: CI: -Dwerror=true to meson jobsNew09/26/2026

Actions
Actions

Also available in: Atom PDF