From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7896) id ED6BD385840E; Sat, 29 Oct 2022 08:15:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED6BD385840E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667031323; bh=uDKgIkQcu2kbDTUxv/Q8J70hlIrJApeUZCOPg75/edY=; h=From:To:Subject:Date:From; b=KZnRXnAl2f48xLEYnlZmALmK0AHQGF4dO1s4uNMLXWir4XbaP0pIjn2x2AGCKQ/Wa PEP0TFzTj/SM8i7H7YbhLIBtvaHVt+RuCPHVRWXsXjVdP5YQ8NNF0UHH5qUp42WU4g PmIuQ3CVvpzVR6+hcqpcAOMRi8wEo1e7KMOjBsCs= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tsukasa OI To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim/sh: Remove redundant function declaration X-Act-Checkin: binutils-gdb X-Git-Author: Tsukasa OI X-Git-Refname: refs/heads/master X-Git-Oldrev: 45f8296e6965ff4e2ca855e995149add6352645d X-Git-Newrev: 9b77569146a8ec354a6010497049428d2a9ceb1d Message-Id: <20221029081523.ED6BD385840E@sourceware.org> Date: Sat, 29 Oct 2022 08:15:15 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D9b77569146a8= ec354a6010497049428d2a9ceb1d commit 9b77569146a8ec354a6010497049428d2a9ceb1d Author: Tsukasa OI Date: Sat Sep 24 09:11:52 2022 +0000 sim/sh: Remove redundant function declaration =20 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 cause= s a build failure (unless "--disable-werror" is specified). =20 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 *memor= y, unsigned char *mem_end, return loop; } =20 -static void ppi_insn (); - #include "ppi.c" =20 /* Provide calloc / free versions that use an anonymous mmap. This can