From nobody Thu Mar 10 20:52:52 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 9B07E1A04525; Thu, 10 Mar 2022 20:52:52 +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 4KF1VD3wlPz4vtl; Thu, 10 Mar 2022 20:52:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646945572; 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=uPJFd7Ezsy5SI2spnJeAx7pggu4+huwxnHy8w49qyAM=; b=pu2SBvS5AWoxc5gGC5XV9evBPhCTKIuNFSuj746Lia4weU5316mtyJFGh8K5IsVWlwuOs0 DJUxZ7rcvx2Bg5mFfzRMJeoO85ShVlYa2cZOjPza/aGgsVEMKX1sPyf5vS1on5Un8zUu+b E2IYLqFlRjYoaMeEcoMK6xQzT774rG5Y/5rkSGtSn5amm7cgyqyvQOIfYZTYLYGZHqz5Bs N1FkwDph7xJGIkN9NTR+yCzEwcw0HfJqdgcONIdlyb9qpdRpY8RX6FLnsOLloms6m9uXIS jPrKiZxFZOomaY49PccfdLqUawMFIuB2Kj5wmewzPjUcHAjTnfXKLxmq9wd9OQ== 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 664DB39FF; Thu, 10 Mar 2022 20:52:52 +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 22AKqqUt098139; Thu, 10 Mar 2022 20:52:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22AKqqr7098138; Thu, 10 Mar 2022 20:52:52 GMT (envelope-from git) Date: Thu, 10 Mar 2022 20:52:52 GMT Message-Id: <202203102052.22AKqqr7098138@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 2d015cffc73a - main - fwcontrol: eliminate set but not used warning 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2d015cffc73ab1ff0e8be9004ab89ecbc777af78 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646945572; 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=uPJFd7Ezsy5SI2spnJeAx7pggu4+huwxnHy8w49qyAM=; b=MuRrlgSW5PdkZC4FMO3CAN+jQ+didhTKFlT2K7en/J3zNG9HSf/7qoJLeQhoVZwGeJoo1Q 1LOKY5jkNc5Flva1w6vDGoOEziToqdxEARc4DJibq8GpqcdM3E/EvsUgfTYvkERl/RZMpb IJ2vsfB/sSqR4yP74VZiVMywro0qkHlNJ/LHVjti87LTaZgvYcOfQMuXRk7M5tmHF2YOGJ eSYAj5kuu5p07trwrjUM6nL94Hl7HI3Hg1d7U3rZzPTsdYenX/P4HLmVwE7+4E4+xiHw2a 3/DFaGgu8LJsTzoO/ZHGCZ+vcZcT2lm2Q4g6QBYkt4JE81MdpJM4hieMbLqBUA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646945572; a=rsa-sha256; cv=none; b=xe+0VP07RjPu/yxwZfV6iyRhcmtiIvXvpVpIcLKDrTcejcDWzwawtJfZBhFLKgN6um1syz GNuB4k6SSbGooDzqaCggoecNrIE+DgI9xdjtW1Q1de7eL8CC61kcQe+gRcmJ/+Q7BvCelp 9kMzZx7yMV/F5q5w5pYCDWalv5tqWoixNPJSsVGeuBxCWfqGW/1sd7Td+W73R52OnbE9mn Y1S1vAs+ZKIEoJjZSCdPTtvuOfO7IsQq/qS5PvQUEtodiJ7hibSqKUNoiuTy28aj3MzHGA DOpJokMf25OvHGHav8qBTWwOvhxbHfL2cMm0RcTRq6zRV2AjX/Ovudllbz+B1Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=2d015cffc73ab1ff0e8be9004ab89ecbc777af78 commit 2d015cffc73ab1ff0e8be9004ab89ecbc777af78 Author: Ed Maste AuthorDate: 2022-02-27 19:04:09 +0000 Commit: Ed Maste CommitDate: 2022-03-10 20:51:27 +0000 fwcontrol: eliminate set but not used warning The variable was used in an #if 0 block; just move the variable definition and setting into the same block since Firewire is mainly of historical interest and is unlikely to see ongoing development in FreeBSD. Sponsored by: The FreeBSD Foundation --- usr.sbin/fwcontrol/fwdv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/fwcontrol/fwdv.c b/usr.sbin/fwcontrol/fwdv.c index 510d22fcbf7b..8c14e1ad8ed8 100644 --- a/usr.sbin/fwcontrol/fwdv.c +++ b/usr.sbin/fwcontrol/fwdv.c @@ -258,7 +258,7 @@ dvsend(int d, const char *filename, char ich, int count) struct dvdbc *dv; struct fw_pkt *pkt; int len, tlen, header, fd, frames, packets, vec, offset, nhdr, i; - int system=-1, pad_acc, cycle_acc, cycle, f_cycle, f_frac; + int system=-1, pad_acc, cycle_acc, cycle, f_frac; struct iovec wbuf[TNBUF*2 + NEMPTY]; char *pbuf; u_int32_t iso_data, iso_empty, hdr[TNBUF + NEMPTY][3]; @@ -359,10 +359,11 @@ next: if (frames % frame_rate[system] == 0) fprintf(stderr, "\n"); fflush(stderr); - f_cycle = (cycle_acc / frame_cycle[system].d) & 0xf; f_frac = (cycle_acc % frame_cycle[system].d * CYCLE_FRAC) / frame_cycle[system].d; #if 0 + int f_cycle; + f_cycle = (cycle_acc / frame_cycle[system].d) & 0xf; ciph->fdf.dv.cyc = htons(f_cycle << 12 | f_frac); #else ciph->fdf.dv.cyc = htons(cycle << 12 | f_frac);