Skip to content

Commit 8738367

Browse files
committed
lxdialog: make compiler check C99-compliant
Current compilers like GCC 14 fail to compile this test program with default settings (unless `-Wno-implicit-int` is given) since function prototypes without return value are not C99-compliant. The result is that ncurses is not found, and 'make menuconfig' fails.
1 parent fff35f3 commit 8738367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/lxdialog/check-lxdialog.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ trap "rm -f $tmp" 0 1 2 3 15
4747
check() {
4848
$cc -x c - -o $tmp 2>/dev/null <<'EOF'
4949
#include CURSES_LOC
50-
main() {}
50+
int main() {}
5151
EOF
5252
if [ $? != 0 ]; then
5353
echo " *** Unable to find the ncurses libraries or the" 1>&2

0 commit comments

Comments
 (0)