public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix missing return type in gdb.linespec/break-asm-file.c
@ 2024-03-29  6:47 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2024-03-29  6:47 UTC (permalink / raw)
  To: gdb-cvs

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-29  6:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-29  6:47 [binutils-gdb] [gdb/testsuite] Fix missing return type in gdb.linespec/break-asm-file.c Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).