From 04a34d8000c3ce213689539d740a7e68ace64bcb Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Fri, 11 Jul 2025 14:21:05 +0200 Subject: [PATCH] Makefile: fix ncurses availability check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc 14.2 includes -Wimplicit-int, causing the check-lxdialog.sh script to run into the following compilation error in the check() function: ``` :2:1: error: return type defaults to ‘int’ [-Wimplicit-int] ``` This results in the incorrect assumption that ncurses is not available. --- 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