[binutils-gdb] [gdb/testsuite] Fix missing return type in gdb.linespec/break-asm-file.c

Tom de Vries vries@sourceware.org
Fri Mar 29 06:47:33 GMT 2024


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2f31f965edc0507ca53c129090652744eb76a472

commit 2f31f965edc0507ca53c129090652744eb76a472
Author: Tom de Vries <tdevries@suse.de>
Date:   Fri Mar 29 07:47:30 2024 +0100

    [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>

Diff:
---
 gdb/testsuite/gdb.linespec/break-asm-file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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()
 {
 }


More information about the Gdb-cvs mailing list