Project

General

Profile

Actions

Bug #2500

open

sdl3 helpdlg.c gnu-folding-constant warning on mac

Added by Marko Lindqvist 1 day ago.

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

0%

Estimated time:

Description

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

FAILED: [code=1] freeciv-sdl3.p/client_gui-sdl3_helpdlg.c.o 
cc -Ifreeciv-sdl3.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../dependencies -I/opt/homebrew/include -I/opt/homebrew/Cellar/sdl3_mixer/3.2.4_1/include -I/opt/homebrew/Cellar/opusfile/0.12_3/include/opus -I/opt/homebrew/Cellar/libvorbis/1.3.7/include -I/opt/homebrew/Cellar/game-music-emu/0.6.5/include -I/opt/homebrew/Cellar/libxmp/4.7.4/include -I/opt/homebrew/Cellar/fluid-synth/2.6.2/include -I/opt/homebrew/Cellar/libsndfile/1.2.2_1/include -I/opt/homebrew/Cellar/flac/1.5.0/include -I/opt/homebrew/Cellar/libogg/1.3.6/include -I/opt/homebrew/Cellar/opus/1.6.1/include/opus -I/opt/homebrew/Cellar/mpg123/1.33.7/include -I/opt/homebrew/Cellar/portaudio/19.7.0/include -I/opt/homebrew/Cellar/readline/8.3.6/include -I/opt/homebrew/Cellar/wavpack/5.9.0/include -I/opt/homebrew/Cellar/sdl3_image/3.4.8/include -I/opt/homebrew/Cellar/libavif/1.4.2/include -I/opt/homebrew/Cellar/dav1d/1.5.4/include -I/opt/homebrew/Cellar/aom/3.15.3/include -I/opt/homebrew/Cellar/libvmaf/3.2.1/include -I/opt/homebrew/Cellar/libvmaf/3.2.1/include/libvmaf -I/opt/homebrew/opt/jpeg-xl/include -I/opt/homebrew/Cellar/highway/1.4.0/include -I/opt/homebrew/Cellar/brotli/1.2.1/include -I/opt/homebrew/opt/little-cms2/include -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/opt/libtiff/include -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/opt/webp/include -I/opt/homebrew/opt/webp/include/webp -I/opt/homebrew/Cellar/sdl3_ttf/3.2.2/include -I/opt/homebrew/Cellar/harfbuzz/15.0.0_1/include/harfbuzz -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/graphite2/include -I/opt/homebrew/opt/freetype/include/freetype2 -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 -DAVIF_DLL -DHWY_SHARED_DEFINE -D_DARWIN_C_SOURCE -MD -MQ freeciv-sdl3.p/client_gui-sdl3_helpdlg.c.o -MF freeciv-sdl3.p/client_gui-sdl3_helpdlg.c.o.d -o freeciv-sdl3.p/client_gui-sdl3_helpdlg.c.o -c ../client/gui-sdl3/helpdlg.c
../client/gui-sdl3/helpdlg.c:650:15: error: variable length array folded to constant array as an extension [-Werror,-Wgnu-folding-constant]
  650 |   char buffer[bufsz];
      |               ^~~~~
../client/gui-sdl3/helpdlg.c:1139:15: error: variable length array folded to constant array as an extension [-Werror,-Wgnu-folding-constant]
 1139 |   char buffer[bufsz];
      |               ^~~~~
2 errors 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