Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 1AE861A9239 for ; Sun, 31 Jan 2021 12:29:19 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 5719D84DA6; Sun, 31 Jan 2021 12:29:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 884B484D7E for ; Sun, 31 Jan 2021 12:29:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id LR3UbhuTMzdz for ; Sun, 31 Jan 2021 12:29:17 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 1A8D284D73 for ; Sun, 31 Jan 2021 12:29:17 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 065D8FA91; Sun, 31 Jan 2021 12:29:17 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 31 Jan 2021 12:29:16 +0000 From: "Roland Illig" Subject: CVS commit: src/tests/usr.bin/xlint/lint1 To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210131122917.065D8FA91@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Roland Illig" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rillig Date: Sun Jan 31 12:29:16 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_161.c msg_161.exp Log Message: lint: add tests for 'constant in conditional context' One of these tests explains why 'do { } while (0)' is so usual that there is no reason to warn about it. That warning will not survive for long. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/msg_161.c \ src/tests/usr.bin/xlint/lint1/msg_161.exp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.