]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[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)
commit2f31f965edc0507ca53c129090652744eb76a472
treebd6b093de87b0ed4cd4db894401c5c8774dcb6f7
parent1678a15b694a0fa6d94514899f228280b92a14de
[gdb/testsuite] Fix missing return type in gdb.linespec/break-asm-file.c

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