diff options
author | Tom de Vries <tdevries@suse.de> | 2024-03-29 07:47:30 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-03-29 07:47:30 +0100 |
commit | 2f31f965edc0507ca53c129090652744eb76a472 (patch) | |
tree | bd6b093de87b0ed4cd4db894401c5c8774dcb6f7 /gdb/testsuite/gdb.linespec | |
parent | 1678a15b694a0fa6d94514899f228280b92a14de (diff) | |
download | gdb-2f31f965edc0507ca53c129090652744eb76a472.zip gdb-2f31f965edc0507ca53c129090652744eb76a472.tar.gz gdb-2f31f965edc0507ca53c129090652744eb76a472.tar.bz2 |
[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>
Diffstat (limited to 'gdb/testsuite/gdb.linespec')
-rw-r--r-- | gdb/testsuite/gdb.linespec/break-asm-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.linespec/break-asm-file.c b/gdb/testsuite/gdb.linespec/break-asm-file.c index 5ba964d..7aff7cc 100644 --- a/gdb/testsuite/gdb.linespec/break-asm-file.c +++ b/gdb/testsuite/gdb.linespec/break-asm-file.c @@ -18,7 +18,7 @@ void func3(); void func2(); -static func() +static void func() { } |