summaryrefslogtreecommitdiff
path: root/extra/config/lxdialog/check-lxdialog.sh
diff options
context:
space:
mode:
authorMarcus Haehnel <marcus.haehnel@kernkonzept.com>2024-07-09 10:12:46 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2024-07-09 14:04:57 +0200
commit36eb3c655acab4207249c7c09e92a96b74e8cdd7 (patch)
tree00e2bb9fbc6d9e0db6d17fccdb0462a9c9705856 /extra/config/lxdialog/check-lxdialog.sh
parent057913bc8cd35582ab3dcf7ccb08989f24fe3352 (diff)
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>
Diffstat (limited to 'extra/config/lxdialog/check-lxdialog.sh')
-rw-r--r--extra/config/lxdialog/check-lxdialog.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/config/lxdialog/check-lxdialog.sh b/extra/config/lxdialog/check-lxdialog.sh
index 9d2a4c585..66bfcb549 100644
--- a/extra/config/lxdialog/check-lxdialog.sh
+++ b/extra/config/lxdialog/check-lxdialog.sh
@@ -43,7 +43,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