[PATCH] kconfig/lxdialog/check-lxdialog.sh: workaround for GCC 14
Nop
ctxnop at gmail.com
Wed Apr 2 15:11:14 UTC 2025
Hi
I already sent that patch (which was cherry-picked in buildroot) a long
time ago:
https://lists.busybox.net/pipermail/busybox/2024-July/090840.html
I believe that this is the 4th time this patch is sent IIRC.
Le mer. 2 avr. 2025 à 16:39, Yiyang Wu <toolmanp at tlmp.cc> a écrit :
> GCC 14 introduces -Werror=implicit-int by default and the former
> implementation of 'check'
>
> check() {
> $cc -x c - -o $tmp 2>/dev/null <<'EOF'
> main() {}
> EOF
> will cause gcc to fail.
> Mark main as explicit function that returns int.
>
> Signed-off-by: Yiyang Wu <toolmanp at tlmp.cc>
> ---
> 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 5075ebf2d..4e138366d 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() {}
> EOF
> if [ $? != 0 ]; then
> echo " *** Unable to find the ncurses libraries or the"
> 1>&2
> --
> 2.49.0
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> https://lists.busybox.net/mailman/listinfo/busybox
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20250402/d63121bd/attachment.htm>
More information about the busybox
mailing list