From patchwork Sat Oct 8 16:42:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1687753 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=0RKcPEep; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Ml9wL2sj3z23jL for ; Sun, 9 Oct 2022 03:43:14 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Ml9wJ6Gjpz3cfC for ; Sun, 9 Oct 2022 03:43:12 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=0RKcPEep; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1234::107; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=) Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1234::107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Ml9vk4VxVz3c4N for ; Sun, 9 Oct 2022 03:42:40 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Cc:To:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:From:References:In-Reply-To:Message-Id: Sender:Reply-To:Content-ID:Content-Description; bh=PFNvS19HuydrWf8VmelkqriEJoSCQsGmWTwavy2UuNE=; b=0RKcPEeph+ktayFn/iRoc7+PE9 5GON5HeHRKzC9Kt9/i9evPcunRqCBIZXxX5YAFYwljHWeCvpfp8JrsAugfkVfdyFwyRL8/gHVi07i P5mElew2B1UxcBKlFMEGIwql9vpsfK71mv2KWSfFQ7+Dw6t96WQT5NN+h1FxAW/sW6INX0A+qc09j f7CLeU5BAoB+5Jy7BrfxeemlXkpm1rEDoMdckHSeanTlXV48tgrAqBCnEldTqUVdlIHfAYKsqnVN9 h7LbVtRm2r1A6Qt++7L/xTuGg7fjV9zs3PHCFA1yFMPrNEBLn66cz9JxzD0Z3haZpnVuNnQId3+cX pyrI1swQ==; Received: from geoff by merlin.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohCuF-0078D0-LI; Sat, 08 Oct 2022 16:42:31 +0000 Message-Id: In-Reply-To: References: From: Geoff Levand Patch-Date: Sat, 8 Oct 2022 09:30:51 -0700 Subject: [PATCH v2 2/5] yacc: Fix warnings MIME-Version: 1.0 To: Jeremy Kerr Date: Sat, 08 Oct 2022 16:42:31 +0000 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: petitboot@lists.ozlabs.org Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Fixes yacc warnings like these: warning: deprecated directive: ‘%pure-parser’, use ‘%define api.pure’ Signed-off-by: Geoff Levand --- discover/grub2/grub2-parser.y | 4 ++-- discover/native/native-parser.y | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/discover/grub2/grub2-parser.y b/discover/grub2/grub2-parser.y index f99bbfd..3433415 100644 --- a/discover/grub2/grub2-parser.y +++ b/discover/grub2/grub2-parser.y @@ -1,9 +1,9 @@ -%pure-parser +%define api.pure %lex-param { yyscan_t scanner } %parse-param { struct grub2_parser *parser } %parse-param { void *scanner } -%error-verbose +%define parse.error verbose %{ #include diff --git a/discover/native/native-parser.y b/discover/native/native-parser.y index bafcf49..b5fe9b1 100644 --- a/discover/native/native-parser.y +++ b/discover/native/native-parser.y @@ -1,9 +1,9 @@ -%pure-parser +%define api.pure %lex-param { nscan_t scanner } %parse-param { struct native_parser *parser } %parse-param { void *scanner } -%error-verbose +%define parse.error verbose %define api.prefix {n} %{