From 9b77569146a8ec354a6010497049428d2a9ceb1d Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Sat, 24 Sep 2022 09:11:52 +0000 Subject: [PATCH] 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. --- 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 -- 2.30.2