diff options
| author | Ting-Wei Lan <lantw44@gmail.com> | 2024-11-10 11:31:57 +0800 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-11-12 23:40:39 +0100 |
| commit | 9793403bc0f304053c6f1bd427814482273faa26 (patch) | |
| tree | 29ce55e1b789b2d007e27d65844181f8573867c4 /tests/gremlin.scm | |
| parent | ab80403eeab6c2c0c140056ac04dd0d118cdac45 (diff) | |
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>
Diffstat (limited to 'tests/gremlin.scm')
| -rw-r--r-- | tests/gremlin.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gremlin.scm b/tests/gremlin.scm index 3dbb8d3643a..280b1d88192 100644 --- a/tests/gremlin.scm +++ b/tests/gremlin.scm | |||
| @@ -136,6 +136,7 @@ | |||
| 136 | (with-directory-excursion directory | 136 | (with-directory-excursion directory |
| 137 | (call-with-output-file "t.c" | 137 | (call-with-output-file "t.c" |
| 138 | (lambda (port) | 138 | (lambda (port) |
| 139 | (display "#include <stdio.h>\n" port) | ||
| 139 | (display "int main () { puts(\"hello\"); }" port))) | 140 | (display "int main () { puts(\"hello\"); }" port))) |
| 140 | (invoke c-compiler "t.c" | 141 | (invoke c-compiler "t.c" |
| 141 | "-Wl,--enable-new-dtags" "-Wl,-rpath=/foo" "-Wl,-rpath=/bar") | 142 | "-Wl,--enable-new-dtags" "-Wl,-rpath=/foo" "-Wl,-rpath=/bar") |
| @@ -164,6 +165,7 @@ | |||
| 164 | (with-directory-excursion directory | 165 | (with-directory-excursion directory |
| 165 | (call-with-output-file "t.c" | 166 | (call-with-output-file "t.c" |
| 166 | (lambda (port) | 167 | (lambda (port) |
| 168 | (display "#include <stdio.h>\n" port) | ||
| 167 | (display "int main () { puts(\"hello\"); }" port))) | 169 | (display "int main () { puts(\"hello\"); }" port))) |
| 168 | 170 | ||
| 169 | (invoke c-compiler "t.c" | 171 | (invoke c-compiler "t.c" |
