From: Tom de Vries Date: Fri, 29 Mar 2024 06:47:30 +0000 (+0100) Subject: [gdb/testsuite] Fix missing return type in gdb.linespec/break-asm-file.c X-Git-Tag: gdb-15-branchpoint~567 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f31f965edc0507ca53c129090652744eb76a472;p=thirdparty%2Fbinutils-gdb.git [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 --- diff --git a/gdb/testsuite/gdb.linespec/break-asm-file.c b/gdb/testsuite/gdb.linespec/break-asm-file.c index 5ba964de1a3..7aff7cc70ed 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() { }