From nobody Fri Aug 19 22:32:22 2022 X-Original-To: dev-commits-src-all@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 4M8c2H0sP1z4ZMN1; Fri, 19 Aug 2022 22:32:23 +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 4M8c2H0CnPz3rMw; Fri, 19 Aug 2022 22:32:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660948343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hGBiD96vTlBRElZA0rV69e4q254GDAc20pritP51v0E=; b=DRUWoKvXNssNubKU5Y1OiPLq7yppEupcvOioF74Iezem6mPNZSR4hsE0MS6+x9RdIX/o/0 CEuwxYsWnn5DJW6K6Ys6buzwi3WoWvJhn5q0d/xBGLl70GcmchVGspcqRNIczVPDgfUrhG HeJuLe5+4oEnYm1cDGVJi9B4gk86a8KY4k1rbRxGmQlNKw0n4dNJC1U3XulGxbd/DFjHJ+ E9QAgQNx5yICzW4gbaYHsPSeD3ftBA8fDSlJUQqXWEaQV7nPsqzQ2I8IaZvcRBO+JH7Tkl qFwxRu6eNfw0/uwmyGuy8gh19LbgeJv8kzlm9bpZJwaODabgB23eAMbK52VCxA== 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 4M8c2G6N2rz18Mp; Fri, 19 Aug 2022 22:32:22 +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 27JMWMhA080149; Fri, 19 Aug 2022 22:32:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27JMWMg0080136; Fri, 19 Aug 2022 22:32:22 GMT (envelope-from git) Date: Fri, 19 Aug 2022 22:32:22 GMT Message-Id: <202208192232.27JMWMg0080136@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: 637e67246a69 - stable/12 - tools/test/upsdl: fix compiler warnings List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/12 X-Git-Reftype: branch X-Git-Commit: 637e67246a69927282e42cdb09e601b044b0769c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660948343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hGBiD96vTlBRElZA0rV69e4q254GDAc20pritP51v0E=; b=T57SL6unHvuj269YgVSOcBfMnUaRGwXGGZd+mjWNTDo4kcCZIKgjh1N7tHBFgwN35vOFEg dUhfo1gP28CeiW27/eJKzDvXK/xtuznfcghvR29u+5yE344gkuHXdCzOOR+ScpvKEsYRZg N3qLHNZB7WWlyaD+pcLD1tmJtGfs3EEfyGlE+X2rkqo/g/2iXivJuDtyT9ztE//jW4Ekdu bBcT+LVjFhmcSQowwlHlzXOHXDI+pby6xo9XRzfcuDnQ9Lw2Iy6Wrl8xkefVjrafLf8Kkz yXuoli8Ne7U/sV4TinXkjw5UkP+pk1Gc75QNLdR1ShqWRb9f8qKKBI6pn+uxwQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660948343; a=rsa-sha256; cv=none; b=keWaZigYLomIYdzBlmLm8zGtirI1yqjm42NXjd+f0X8ApxHwIwWjhTIdyhX4CQgi00wxZq OEg8mxe+e91O4gitDtQBcMTr8supArdAt0HfMBT9LpqyjPq7Nn+UEoCWtTNiGCOj5Q6vty SfGFVaDXGwJjtJTY8lKF7ZQWnSOWEYqm7ygJRKasMRO4OWYjf2ZL/zMQzQHD0fekeLOdXd yxkoENCrKe2pOF8UM2mRkoA2vnlCGI+YtcSN9XMtNVqhnfpOmnsQgf/zsjL2+1oCSOmxda USbSKE1Fvn3FgK/KKCRlY5vm7RUQ6kiaNGK6SZyi6i4wCkDy2IXyhjMIg8CORw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=637e67246a69927282e42cdb09e601b044b0769c commit 637e67246a69927282e42cdb09e601b044b0769c Author: Alan Somers AuthorDate: 2021-09-14 20:50:01 +0000 Commit: Alan Somers CommitDate: 2022-08-19 22:32:10 +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;