]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix missing return type in gdb.linespec/break-asm-file.c
authorTom de Vries <tdevries@suse.de>
Fri, 29 Mar 2024 06:47:30 +0000 (07:47 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 29 Mar 2024 06:47:30 +0000 (07:47 +0100)
On fedora rawhide, when running test-case gdb.linespec/break-asm-file.exp, I
get:
...
gdb compile failed, break-asm-file.c:21:8: error: \
  return type defaults to 'int' [-Wimplicit-int]
   21 | static func()
      |        ^~~~
...

Fix this by adding the missing return type.

Tested on aarch64-linux.

Approved-By: John Baldwin <jhb@FreeBSD.org>
gdb/testsuite/gdb.linespec/break-asm-file.c

index 5ba964de1a393b28737899859aaa1df8f813c3c6..7aff7cc70eda492a34acc74b80cfcada41ffd5be 100644 (file)
@@ -18,7 +18,7 @@
 void func3();
 void func2();
 
-static func()
+static void func()
 {
 }