1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

tests: Fix gremlin.scm for GCC 14

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

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Ting-Wei Lan
2024-11-10 11:31:57 +08:00
committed by Ludovic Courtès
parent ab80403eea
commit 9793403bc0

View File

@@ -136,6 +136,7 @@
(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 @@
(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"