From 9793403bc0f304053c6f1bd427814482273faa26 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Sun, 10 Nov 2024 11:31:57 +0800 Subject: tests: Fix gremlin.scm for GCC 14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * tests/gremlin.scm: Include stdio.h before using puts since GCC 14 no longer allows implicit declarations. Signed-off-by: Ludovic Courtès --- tests/gremlin.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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 @@ (with-directory-excursion directory (call-with-output-file "t.c" (lambda (port) + (display "#include \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 \n" port) (display "int main () { puts(\"hello\"); }" port))) (invoke c-compiler "t.c" -- cgit v1.2.3