Received: by mail.netbsd.org (Postfix, from userid 605) id 88A7484D48; Sun, 18 Apr 2021 09:37:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id BADA184D1C for ; Sun, 18 Apr 2021 09:37:18 +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 Ir2WXiDWISOA for ; Sun, 18 Apr 2021 09:37:18 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 5076684CED for ; Sun, 18 Apr 2021 09:37:18 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 40636FA95; Sun, 18 Apr 2021 09:37:18 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 18 Apr 2021 09:37:18 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/xlint/lint1 To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210418093718.40636FA95@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 Apr 18 09:37:18 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: preserve curr_pos when checking whether a symbol is used At the end of a function definition (funcend), curr_pos was not restored, probably because the very next action is to read the next token, which will then set curr_pos. Again, this may affect the location reported in assertion failures, everything else is unchanged. To generate a diff of this commit: cvs rdiff -u -r1.176 -r1.177 src/usr.bin/xlint/lint1/decl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.