kumquat-buildroot/support/kconfig/lxdialog
Robert Marko f5a347c1dc kconfig/lxdialog: fix check() with GCC14
GCC14 now treats implicit int types as error so when check() from
check-lxdialog.sh is called to check whether we can link against ncurses
it will fail silently and the help text indicating to install ncurses is
printed.

However, this is not due to missing ncurses but once the stderr redirect
to /dev/null is removed we can see the root cause:
<stdin>:2:1: error: return type defaults to ‘int’ [-Wimplicit-int]

So, in order for menuconfig to work with GCC14 lets just specify the
return type of main() as int.

Npte that the upstream kconfig in the linux kernel source tree no longer
carries or uses the check-lxdialog.sh script since commit 1c5af5cf9308
(kconfig: refactor ncurses package checks for building mconf and nconf),
so there is no commit we can backport to our kconfig copy.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Tested-by: Petr Vorel <petr.vorel@gmail.com>
[yann.morin.1998@free.fr: add note about upstream kernel]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit a6210d28db)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-05-15 15:18:09 +02:00
..
.gitignore
BIG.FAT.WARNING
check-lxdialog.sh kconfig/lxdialog: fix check() with GCC14 2024-05-15 15:18:09 +02:00
checklist.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
dialog.h support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
inputbox.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
menubox.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
textbox.c
util.c support/kconfig: bump to kconfig from Linux 4.17-rc2 2018-09-20 23:14:38 +02:00
yesno.c