[Buildroot] [PATCH v2 1/1] kconfig/lxdialog: fix check() with GCC14
Peter Korsgaard
peter at korsgaard.com
Wed May 15 13:22:30 UTC 2024
>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:
> Robert, All,
> On 2024-04-08 23:16 +0200, Robert Marko spake thusly:
>> 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.
> I've also added a little note that there is no commit from the kernel
> tree that we can backport, because the kernel tree no longer has that
> script.
>> Signed-off-by: Robert Marko <robimarko at gmail.com>
>> Reviewed-by: Petr Vorel <petr.vorel at gmail.com>
>> Tested-by: Petr Vorel <petr.vorel at gmail.com>
> Applied to master with the little note abouve added, thanks.
Committed to 2024.02.x, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list