From: Tsukasa OI Date: Sat, 24 Sep 2022 09:11:52 +0000 (+0000) Subject: sim/sh: Remove redundant function declaration X-Git-Tag: gdb-13-branchpoint~667 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b77569146a8ec354a6010497049428d2a9ceb1d;p=thirdparty%2Fbinutils-gdb.git 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 --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