From nobody Thu Oct 07 21:41:59 2021 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 83BA712D2E45; Thu, 7 Oct 2021 21:42:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HQPt017wkz58qF; Thu, 7 Oct 2021 21:41:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C30B11B425; Thu, 7 Oct 2021 21:41:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 197LfxlG029260; Thu, 7 Oct 2021 21:41:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 197LfxFp029259; Thu, 7 Oct 2021 21:41:59 GMT (envelope-from git) Date: Thu, 7 Oct 2021 21:41:59 GMT Message-Id: <202110072141.197LfxFp029259@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: ce10852cb3a0 - stable/13 - tools/test/upsdl: fix compiler warnings List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: asomers X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ce10852cb3a03a1233cff0a54b2d1c67d16d1ee6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=ce10852cb3a03a1233cff0a54b2d1c67d16d1ee6 commit ce10852cb3a03a1233cff0a54b2d1c67d16d1ee6 Author: Alan Somers AuthorDate: 2021-09-14 20:50:01 +0000 Commit: Alan Somers CommitDate: 2021-10-07 21:41:47 +0000 tools/test/upsdl: fix compiler warnings Sponsored by: Axcient (cherry picked from commit 5dc5f849be9047309d32c4df8e7ee617c27ec43f) --- tools/test/upsdl/upsdl.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/test/upsdl/upsdl.c b/tools/test/upsdl/upsdl.c index fc4a761e450b..960b034ffcfe 100644 --- a/tools/test/upsdl/upsdl.c +++ b/tools/test/upsdl/upsdl.c @@ -32,20 +32,21 @@ #include #include #include +#include #include -int prepareFile(char* filename,int* fdp); +int prepareFile(const char* filename,int* fdp); int mapBuffer(char** bufferp,int fd1,int fd2); int startIO(int fd,char *buffer); -int pagesize; +static int pagesize; #define FILESIZE (32*1024) -char wbuffer[FILESIZE]; +static char wbuffer[FILESIZE]; /* Create a FILESIZE sized file - then remove file data from the cache*/ -int prepareFile(char* filename,int* fdp) +int prepareFile(const char* filename,int* fdp) { int fd; int len; @@ -134,7 +135,7 @@ int startIO(int fd,char *buffer) } -int main(int argc,char *argv[],char *envp[]) +int main(int argc __unused, char *argv[] __unused) { int fdA,fdB,fdDelayA,fdDelayB;