public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim/sh: Remove redundant function declaration
@ 2022-10-29  8:15 Tsukasa OI
  0 siblings, 0 replies; only message in thread
From: Tsukasa OI @ 2022-10-29  8:15 UTC (permalink / raw)
  To: gdb-cvs

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

commit 9b77569146a8ec354a6010497049428d2a9ceb1d
Author: Tsukasa OI <research_trasio@irq.a4lg.com>
Date:   Sat Sep 24 09:11:52 2022 +0000

    sim/sh: Remove redundant function declaration
    
    Clang generates a warning if there is a function declaration/definition
    with zero arguments.  Such declarations/definitions without a prototype (an
    argument list) are deprecated forms of indefinite arguments
    ("-Wdeprecated-non-prototype").  On the default configuration, it causes a
    build failure (unless "--disable-werror" is specified).
    
    But there is another issue.  This function declaration in sim/sh/interp.c
    is completely redundant.  This commit just removes that declaration.

Diff:
---
 sim/sh/interp.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sim/sh/interp.c b/sim/sh/interp.c
index 38f3f945a35..b6f29880d74 100644
--- a/sim/sh/interp.c
+++ b/sim/sh/interp.c
@@ -1492,8 +1492,6 @@ get_loop_bounds (int rs, int re, unsigned char *memory, unsigned char *mem_end,
   return loop;
 }
 
-static void ppi_insn ();
-
 #include "ppi.c"
 
 /* Provide calloc / free versions that use an anonymous mmap.  This can

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

only message in thread, other threads:[~2022-10-29  8:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-29  8:15 [binutils-gdb] sim/sh: Remove redundant function declaration Tsukasa OI

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).