From nobody Sat May 14 16:40:59 2022 X-Original-To: dev-commits-ports-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 6B2D01ADEB7C; Sat, 14 May 2022 16:40:59 +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 4L0rqb2cSBz3KK4; Sat, 14 May 2022 16:40:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652546459; 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=FB4x1RX3Qs8d7SO7dGlqdMcvB7XhFmcHKqvkZO9wztY=; b=XRJGsxKv/2mDIV3gThzU4mBmeHyLzFbetcGwcWgLWW28QYh7aGMZrN9FLTA39r94zss1FX ZfY/c5nZ2p8Y+7Hhk8d9cOqtfGjDfXGez1+yJWK/Sz5n6p6vDXOFjrG7niqF9kOrcpE458 Shm52Cp09jo29lO+uzqg5480/h377zi8gkwaqE6+oPHnvbpvF5ksTXyi/G/Z3DVX++ZIte kd7r+9BOPuBmuKCIP/lDVOdSiJJXY3fD/oZCmAiPhIxvn9dFZMAXtNZ1u64uvle9nLiy20 i/w9Bu8v7uT5mib43OIj1Woh7cJw7LcwMpNlwJQd1MBUtie1T1jgBrEV8RoW+g== 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 39BB71AE66; Sat, 14 May 2022 16:40: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 24EGexUe017202; Sat, 14 May 2022 16:40:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24EGex0u017196; Sat, 14 May 2022 16:40:59 GMT (envelope-from git) Date: Sat, 14 May 2022 16:40:59 GMT Message-Id: <202205141640.24EGex0u017196@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitri Goutnik Subject: git: e2c8ca5df4d2 - main - emulators/rtc: Unbreak build with llvm13 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dmgk X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e2c8ca5df4d2b07fb124f9b7dfa9d9f62f120a5d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652546459; 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=FB4x1RX3Qs8d7SO7dGlqdMcvB7XhFmcHKqvkZO9wztY=; b=HyqC/it+xMP4bpGpuCiWosKuy8zUx05KXdwLqZuW0l3icaWaUfzitjFJnEPAfhSsjGJb/W fG3xoW1vAlcYvan0MH6jcfnvqRYbj1mv568FcfRFH9AGnACmY21Whk4D3RDbW1bwR3h2Mc ueEy1tN5NjLO+m3q04kepbW2hubvgS6sThxFN7P6m0zKGok8Taqujmf1//ooE708Gvthny et2xbS8piAeP0JuvMUfRzN3a3fk7eaq+JpHhIzoLVJPtg7noTogDsMhITvjRs+9bwUqcYv 1e9hWADXB+LS10PGSzxpnRD5xnjR0oTPPuMzY8rRb/ms7HcovqlxX+lealoDSg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652546459; a=rsa-sha256; cv=none; b=RsOAErPnOTn5RnwilzHY2+9HxBJROAzKb1qYkGf82IvabtUeyz06kF3WhvdIRGGjL+cCcK ZXVcQMhNrqe+GT2ZKihhYEVHuTLv4X1RHOW8RP68nvJHVYhtaxIvazL4OjM0uSOCqLpEOz oyfqrBLoDofVgLBZFJSM8AaP+9Q8cokeX+/m9HvXVcXUb5mY/qO1ifcIMk2gQE2KRq1SSd FMzX1+VLgFi60RUtW+p045VyWY/173jWBx4l/LOO74mYSoNnTMTHZJ/PvfwtSgTemiTf73 50OtE2Gk30vcBoz1XagWF2te7wIy1PPL23fL6x5uI+I5bN34r36+d+YIcJDe5g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dmgk: URL: https://cgit.FreeBSD.org/ports/commit/?id=e2c8ca5df4d2b07fb124f9b7dfa9d9f62f120a5d commit e2c8ca5df4d2b07fb124f9b7dfa9d9f62f120a5d Author: Jamie Landeg-Jones AuthorDate: 2022-05-14 16:34:13 +0000 Commit: Dmitri Goutnik CommitDate: 2022-05-14 16:40:10 +0000 emulators/rtc: Unbreak build with llvm13 rtc.c:112:6: error: variable 'unit' set but not used [-Werror,-Wunused-but-set-variable] int unit; ^ PR: 263616 --- emulators/rtc/files/rtc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emulators/rtc/files/rtc.c b/emulators/rtc/files/rtc.c index 49c3638965f7..5c3d8cf1c5b2 100644 --- a/emulators/rtc/files/rtc.c +++ b/emulators/rtc/files/rtc.c @@ -109,10 +109,16 @@ static struct rtc_softc * rtc_attach(struct cdev *dev) { struct rtc_softc *sc; +/* Clang 13+ realises that "unit" below isn't actually used if we */ +/* aren't running with DEBUG set. The warning is treated as a */ +/* fatal error by FreeBSD's kmod build system, so wrap its usage */ +/* within DEBUG pre-processor conditionals. - Jamie Landeg-Jones */ +#if DEBUG int unit; unit = dev2unit(dev); DLog(Lenter, "%d %p", unit, dev); +#endif /* DEBUG */ if (dev->si_drv1) { DLog(Lexit, "old %p, %p", dev, dev->si_drv1); return dev->si_drv1;