kconfig/lxdialog: Make main() return 0
authorLuK1337 <priv.luk@gmail.com>
Fri, 28 Jul 2023 22:17:46 +0000 (00:17 +0200)
committerNolen Johnson <johnsonnolen@gmail.com>
Thu, 10 Oct 2024 18:14:27 +0000 (14:14 -0400)
Fixes build with newer host toolchain.

Change-Id: I5c69bcdf6422d86b852e29768ba6dfbe0e9c2a76

scripts/kconfig/lxdialog/check-lxdialog.sh

index 5075ebf2d3b995bee04c146d942abce4515b4559..910ca1f7ce0045818f643089fef3bfcffad0886d 100755 (executable)
@@ -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() { return 0; }
 EOF
        if [ $? != 0 ]; then
            echo " *** Unable to find the ncurses libraries or the"       1>&2