unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Ting-Wei Lan <lantw44@gmail.com>
To: 74288@debbugs.gnu.org
Cc: Ting-Wei Lan <lantw44@gmail.com>
Subject: [bug#74288] [PATCH] tests: Fix gremlin.scm for GCC 14
Date: Sun, 10 Nov 2024 11:31:57 +0800	[thread overview]
Message-ID: <20241110033204.214979-1-lantw44@gmail.com> (raw)

* 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





             reply	other threads:[~2024-11-10  3:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-10  3:31 Ting-Wei Lan [this message]
2024-11-12 22:40 ` bug#74288: [PATCH] tests: Fix gremlin.scm for GCC 14 Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241110033204.214979-1-lantw44@gmail.com \
    --to=lantw44@gmail.com \
    --cc=74288@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).