diff options
author | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-09-24 09:11:52 +0000 |
---|---|---|
committer | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-10-29 08:13:15 +0000 |
commit | 9b77569146a8ec354a6010497049428d2a9ceb1d (patch) | |
tree | 2032bdf9097cdb7efd3b44ca8f65399be04e9ac0 | |
parent | 45f8296e6965ff4e2ca855e995149add6352645d (diff) | |
download | gdb-9b77569146a8ec354a6010497049428d2a9ceb1d.zip gdb-9b77569146a8ec354a6010497049428d2a9ceb1d.tar.gz gdb-9b77569146a8ec354a6010497049428d2a9ceb1d.tar.bz2 |
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.
-rw-r--r-- | sim/sh/interp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sim/sh/interp.c b/sim/sh/interp.c index 38f3f94..b6f2988 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 |