[PATCH] tests: Fix gremlin.scm for GCC 14

  • Done
  • quality assurance status badge
Details
2 participants
  • Ting-Wei Lan
  • Ludovic Courtès
Owner
unassigned
Submitted by
Ting-Wei Lan
Severity
normal
T
T
Ting-Wei Lan wrote on 10 Nov 04:31 +0100
(address . guix-patches@gnu.org)(name . Ting-Wei Lan)(address . lantw44@gmail.com)
20241110033204.214979-1-lantw44@gmail.com
* 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(+)

Toggle diff (22 lines)
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"
--
2.47.0
L
L
Ludovic Courtès wrote on 12 Nov 23:40 +0100
(name . Ting-Wei Lan)(address . lantw44@gmail.com)(address . 74288-done@debbugs.gnu.org)
87jzd8rs7l.fsf@gnu.org
Ting-Wei Lan <lantw44@gmail.com> skribis:

Toggle quote (3 lines)
> * tests/gremlin.scm: Include stdio.h before using puts since GCC 14 no
> longer allows implicit declarations.

Applied, thanks!
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 74288@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 74288
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch