unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#74288] [PATCH] tests: Fix gremlin.scm for GCC 14
@ 2024-11-10  3:31 Ting-Wei Lan
  2024-11-12 22:40 ` bug#74288: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ting-Wei Lan @ 2024-11-10  3:31 UTC (permalink / raw)
  To: 74288; +Cc: Ting-Wei Lan

* 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(+)

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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-11-12 22:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-10  3:31 [bug#74288] [PATCH] tests: Fix gremlin.scm for GCC 14 Ting-Wei Lan
2024-11-12 22:40 ` bug#74288: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).