Project

General

Profile

Actions

Bug #2436

open

gtk3.22 citizensinfo.c gnu-folding-constant warning on mac

Added by Marko Lindqvist 3 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
gtk3.22-client
Target version:
Start date:
11/01/2026
Due date:
% Done:

0%

Estimated time:

Description

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

FAILED: [code=1] freeciv-gtk3.22.p/client_gui-gtk-3.22_citizensinfo.c.o 
cc -Ifreeciv-gtk3.22.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../client -I../client/include -I../client/luascript -I../client/agents -I/opt/homebrew/Cellar/gtk+3/3.24.52_1/include/gtk-3.0 -I/opt/homebrew/Cellar/pango/1.58.2/include/pango-1.0 -I/opt/homebrew/Cellar/libthai/0.1.30/include -I/opt/homebrew/Cellar/libdatrie/0.2.14/include -I/opt/homebrew/Cellar/harfbuzz/15.0.0_1/include/harfbuzz -I/opt/homebrew/opt/graphite2/include -I/opt/homebrew/Cellar/cairo/1.18.6/include -I/opt/homebrew/Cellar/cairo/1.18.6/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.18.3/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/Cellar/brotli/1.2.1/include -I/opt/homebrew/Cellar/libxext/1.3.7/include -I/opt/homebrew/Cellar/xorgproto/2026.1/include -I/opt/homebrew/Cellar/libxrender/0.9.13/include -I/opt/homebrew/Cellar/libx11/1.8.14/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.12/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.46.4/include/pixman-1 -I/opt/homebrew/include/gdk-pixbuf-2.0 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/webp/include -I/opt/homebrew/opt/webp/include/webp -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.8.4/include -I/opt/homebrew/opt/jpeg-turbo/include -I/opt/homebrew/Cellar/at-spi2-core/2.62.1/include/atk-1.0 -I/opt/homebrew/Cellar/libepoxy/1.5.10/include -I/opt/homebrew/Cellar/fribidi/1.0.17/include/fribidi -I/opt/homebrew/Cellar/glib/2.90.1/include/gio-unix-2.0 -I/opt/homebrew/Cellar/glib/2.90.1/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX27.sdk/usr/include/ffi -I/opt/homebrew/Cellar/glib/2.90.1/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.90.1/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre2/10.49/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 -DHAVE_CONFIG_H -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_20 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_22 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_50 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_50 -MD -MQ freeciv-gtk3.22.p/client_gui-gtk-3.22_citizensinfo.c.o -MF freeciv-gtk3.22.p/client_gui-gtk-3.22_citizensinfo.c.o.d -o freeciv-gtk3.22.p/client_gui-gtk-3.22_citizensinfo.c.o -c ../client/gui-gtk-3.22/citizensinfo.c
../client/gui-gtk-3.22/citizensinfo.c:130:21: error: variable length array folded to constant array as an extension [-Werror,-Wgnu-folding-constant]
  130 |   GType model_types[num_citizens_cols + 3];
      |                     ^~~~~~~~~~~~~~~~~~~~~
1 error generated.


Related issues 1 (1 open — 0 closed)

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

Actions
Actions #1

Updated by Marko Lindqvist 3 days ago

Actions

Also available in: Atom PDF