File: 1010-configure-gcc-14.patch

package info (click to toggle)
unicode-screensaver 0.5.2-7
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,932 kB
  • sloc: sh: 4,154; ansic: 2,090; xml: 75; makefile: 47
file content (19 lines) | stat: -rw-r--r-- 731 bytes parent folder | download | duplicates (2)
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.),