1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: Correct ANSI C compile test in configure.ac.
The GCC 14 compiler refuse code where the return type is implicitly set
to 'int'.
Author: Petter Reinholdtsen <pere@debian.org>
Bug-Debian: https://bugs.debian.org/1075606
Forwarded: no
Last-Update: 2024-10-28
---
--- unicode-screensaver-0.5.2.orig/configure.ac
+++ unicode-screensaver-0.5.2/configure.ac
@@ -141,7 +141,7 @@ AC_DEFUN(AC_PROG_CC_ANSI,
OBJCC="$CC"
AC_MSG_CHECKING([whether the compiler works on ANSI C])
- AC_TRY_RUN([ main(int ac, char **av) { return 0; } ],
+ AC_TRY_RUN([int main(int ac, char **av) { return 0; } ],
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no)
AC_MSG_ERROR(Couldn't build even a trivial ANSI C program: check CC.),
|