From patchwork Sat Dec 31 09:19:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zongyuan Li X-Patchwork-Id: 13085988 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54CEDC3DA7A for ; Sat, 31 Dec 2022 09:20:49 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBY2C-0000Ui-C8; Sat, 31 Dec 2022 04:20:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBY24-0000Tx-JV for qemu-devel@nongnu.org; Sat, 31 Dec 2022 04:20:00 -0500 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pBY1z-0000hg-Ni for qemu-devel@nongnu.org; Sat, 31 Dec 2022 04:20:00 -0500 Received: by mail-pg1-x52b.google.com with SMTP id e10so1579544pgc.9 for ; Sat, 31 Dec 2022 01:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smartx-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=d54QAWn2+ELmbnntkRqAx/lPnsvepWPl/ohP35fLo3c=; b=DA+wxJHB5R8VAAqUTKT+O/xwdxVMRbN+hvJ0WJRTU0PZEBkQTPr4f3jyPAABrZ3uJT 1jdudHO9QTGQYvCtgWMJeZ31aya/Xevd6CkuXKh5E4iw0IZGGB67tTw//8YzLTxn/sQ1 3P0u1xILoW/BdRA2ttLFpm/9krvH9BNJ92Jphwz6HNxKD7T2+EuhmFrzRgaUlksIc6sN 6hk/AUwjHaOYb05S9OCdcCyNb1VKd//kJQDaDav3vB+4gJ1QWKBJyv9GNsbER1HLwSsr EY+FNjq3yuQk+AfEUMG6fLCdtLRL1dVzVoOBm47EDvdxlbT3y1fHSWi95Cj+svch8k7E GwOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d54QAWn2+ELmbnntkRqAx/lPnsvepWPl/ohP35fLo3c=; b=8OMRlLnpqhwA6CHMTfMbCMO6l8myHv5tGvBdIyYXb8c+Pp9XPKrzPNhytAXpQbvKV9 QucAeQ628vXLAL37d3ueevn7ntBZcEd1Ip7nd8snURJO4tgdu1kNQkepaR9SK8tVn1D6 eb6fz9wni4cps7f8j9ygTHEBTE47NNuA5h0yHOLI5Dti9JvNNLkbgntEyclt3xtTP+HR bbruhmA8bxv84GrWvFdowIbO48nzVitR9yaArTIJGis2S9D8mCJ4HioF1ml0HgzpjgQx QGsJ/AWzI8bFtbl+I0kQ4rUARDSber5dBBUEU/Eyk4saCBTD/3unzrIdxc2ZzREDE1Vo KycA== X-Gm-Message-State: AFqh2kpsv4AkbeW2TtZ+RYf1vhwIu/kNpywg8VOcgPxiJOOGC0cxJhUc ZFDSIpfbTpZ4tL38hTaOkU0WEA== X-Google-Smtp-Source: AMrXdXtUFBOcM6/+6YmRhooT1aG5a/2m1AH/BbeoG7fhslrJROFc5AaUXkuslXtUBIf6OJuL0IS9dw== X-Received: by 2002:a05:6a00:288f:b0:581:fddb:749c with SMTP id ch15-20020a056a00288f00b00581fddb749cmr4923494pfb.5.1672478391969; Sat, 31 Dec 2022 01:19:51 -0800 (PST) Received: from bunker.c0x0o.me ([154.202.60.25]) by smtp.gmail.com with ESMTPSA id p5-20020a622905000000b005749f5d9d07sm15350265pfp.99.2022.12.31.01.19.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Dec 2022 01:19:51 -0800 (PST) From: Zongyuan Li To: Alessandro Di Federico , Anton Johansson , qemu-devel@nongnu.org Cc: Zongyuan Li Subject: [PATCH 1/1] target/hexagon: work around unused variable in yyparser Date: Sat, 31 Dec 2022 17:19:35 +0800 Message-Id: <20221231091935.152590-1-zongyuan.li@smartx.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: none client-ip=2607:f8b0:4864:20::52b; envelope-from=zongyuan.li@smartx.com; helo=mail-pg1-x52b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Variable 'yynerrs' is recognized as unused variable in clang15, which is auto-generated by bison in parser file, as long as user code doesn't access it in '.y'. This is already fixed in bison 8.2. But for user who use latest clang, a simple harmless code piece would fix this building error. FYI: bison patch link https://mail.gnu.org/archive/html/bison-patches/2022-08/msg00006.html Signed-off-by: Zongyuan Li --- target/hexagon/idef-parser/idef-parser.y | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/hexagon/idef-parser/idef-parser.y b/target/hexagon/idef-parser/idef-parser.y index 8be44a0ad1..07aa105aa2 100644 --- a/target/hexagon/idef-parser/idef-parser.y +++ b/target/hexagon/idef-parser/idef-parser.y @@ -99,6 +99,9 @@ /* Input file containing the description of each hexagon instruction */ input : instructions { + if (yynerrs != 0) { + YYABORT; + } YYACCEPT; } ;