From 3657d228bcf698d936d2e4a164ac08ae7c6e5cb0 Mon Sep 17 00:00:00 2001 From: Igor Belwon Date: Wed, 15 Jan 2025 20:58:38 +0100 Subject: [PATCH] check-lxdialog: Fix lxdialog check on new compilers This causes menuconfig to not work, as without the function return type, gcc will produce a warning. Fixes: $ make menuconfig HOSTCC scripts/kconfig/conf.o *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. *** *** Install ncurses (ncurses-devel) and try again. *** make[1]: *** [/home/igor/phones/z3s/uniLoader/scripts/kconfig/Makefile:219: scripts/kconfig/dochecklxdialog] Error 1 Signed-off-by: Igor Belwon --- 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 82cc3a8..1beb417 100644 --- a/scripts/kconfig/lxdialog/check-lxdialog.sh +++ b/scripts/kconfig/lxdialog/check-lxdialog.sh @@ -40,7 +40,7 @@ trap "rm -f $tmp" 0 1 2 3 15 check() { $cc -xc - -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