]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: fix C23 issue in vers7 test
authorSam James <sam@gentoo.org>
Wed, 14 May 2025 05:38:56 +0000 (06:38 +0100)
committerSam James <sam@gentoo.org>
Wed, 14 May 2025 05:42:17 +0000 (06:42 +0100)
This test is UNSUPPORTED on arm64 with GCC 15 (which defaults to -std=gnu23)
because it now prototypes "no arguments".

PR ld/32546
* ld-elfvers/vers7.c: Fix function definitions for C23.

ld/testsuite/ld-elfvers/vers7.c

index 54316c9242978b087b65c3dce9ceaf804ef25979..a4fb2543fcf50f2128c9bdd31f42ab1ca397f3ee 100644 (file)
@@ -2,8 +2,8 @@
  * Test program that goes with test7.so
  */
 
-extern int hide_a();
-extern int show_b();
+extern int hide_a(int e);
+extern int show_b(int e);
 
 int
 main()