From f80ca110b3667f77bb7203f2643dc56ee1e47bc5 Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Mon, 27 Oct 2025 12:10:35 +0100 Subject: [PATCH] lxdialog: make compiler check C99-compliant Current compilers like GCC 14 fail to compile this test program with default settings (unless `-Wno-implicit-int` is given) since function prototypes without return value are not C99-compliant. The result is that ncurses is not found, and 'make menuconfig' fails. Signed-off-by: Roland Hieber --- config/lxdialog/check-lxdialog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/lxdialog/check-lxdialog.sh b/config/lxdialog/check-lxdialog.sh index 5075ebf2d..4e138366d 100755 --- a/config/lxdialog/check-lxdialog.sh +++ b/config/lxdialog/check-lxdialog.sh @@ -47,7 +47,7 @@ trap "rm -f $tmp" 0 1 2 3 15 check() { $cc -x c - -o $tmp 2>/dev/null <<'EOF' #include CURSES_LOC -main() {} +int main() {} EOF if [ $? != 0 ]; then echo " *** Unable to find the ncurses libraries or the" 1>&2