From 0ad973bbd33a60cb80f5be451436895157d95930 Mon Sep 17 00:00:00 2001 From: adtyn-0 Date: Mon, 6 Oct 2025 09:15:24 +0530 Subject: [PATCH] fix: added explicit int to main() in ncurses check --- scripts/kconfig/lxdialog/check-lxdialog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh index 5075ebf2d3..162f4460db 100755 --- a/scripts/kconfig/lxdialog/check-lxdialog.sh +++ b/scripts/kconfig/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(void) {return 0;} EOF if [ $? != 0 ]; then echo " *** Unable to find the ncurses libraries or the" 1>&2