浏览代码

buildsys: allow building with gcc-14

GCC-14 requires all functions to have an explicit return type.
An implicit return type is no longer supported. main() in the ncurses
link check was declared without return type. Add it to make this work
on GCC-14.

See also: https://gcc.gnu.org/gcc-14/porting_to.html

Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
Marcus Haehnel 11 月之前
父节点
当前提交
36eb3c655a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      extra/config/lxdialog/check-lxdialog.sh

+ 1 - 1
extra/config/lxdialog/check-lxdialog.sh

@@ -43,7 +43,7 @@ trap "rm -f $tmp" 0 1 2 3 15
 check() {
 check() {
         $cc -x c - -o $tmp 2>/dev/null <<'EOF'
         $cc -x c - -o $tmp 2>/dev/null <<'EOF'
 #include CURSES_LOC
 #include CURSES_LOC
-main() {}
+int main() {}
 EOF
 EOF
 	if [ $? != 0 ]; then
 	if [ $? != 0 ]; then
 	    echo " *** Unable to find the ncurses libraries or the"       1>&2
 	    echo " *** Unable to find the ncurses libraries or the"       1>&2