diff mbox series

[bug#74288] tests: Fix gremlin.scm for GCC 14

Message ID 20241110033204.214979-1-lantw44@gmail.com
State New
Headers show
Series [bug#74288] tests: Fix gremlin.scm for GCC 14 | expand

Commit Message

Ting-Wei Lan Nov. 10, 2024, 3:31 a.m. UTC
* tests/gremlin.scm: Include stdio.h before using puts since GCC 14 no
longer allows implicit declarations.
---
 tests/gremlin.scm | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ludovic Courtès Nov. 12, 2024, 10:40 p.m. UTC | #1
Ting-Wei Lan <lantw44@gmail.com> skribis:

> * tests/gremlin.scm: Include stdio.h before using puts since GCC 14 no
> longer allows implicit declarations.

Applied, thanks!
diff mbox series

Patch

diff --git a/tests/gremlin.scm b/tests/gremlin.scm
index 3dbb8d3643..280b1d8819 100644
--- a/tests/gremlin.scm
+++ b/tests/gremlin.scm
@@ -136,6 +136,7 @@  (define ground-truth
      (with-directory-excursion directory
        (call-with-output-file "t.c"
          (lambda (port)
+           (display "#include <stdio.h>\n" port)
            (display "int main () { puts(\"hello\"); }" port)))
        (invoke c-compiler "t.c"
                "-Wl,--enable-new-dtags" "-Wl,-rpath=/foo" "-Wl,-rpath=/bar")
@@ -164,6 +165,7 @@  (define ground-truth
      (with-directory-excursion directory
        (call-with-output-file "t.c"
          (lambda (port)
+           (display "#include <stdio.h>\n" port)
            (display "int main () { puts(\"hello\"); }" port)))
 
        (invoke c-compiler "t.c"