From patchwork Thu Apr 21 05:45:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1619939 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=PYyAgP9u; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KkRMp6RDdz9sFk for ; Thu, 21 Apr 2022 15:45:26 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KkRMp5bKsz2yWN for ; Thu, 21 Apr 2022 15:45:26 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=PYyAgP9u; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::430; helo=mail-pf1-x430.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=PYyAgP9u; dkim-atps=neutral Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) (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 4KkRMk4Zxdz2xXw for ; Thu, 21 Apr 2022 15:45:20 +1000 (AEST) Received: by mail-pf1-x430.google.com with SMTP id y14so3229496pfe.10 for ; Wed, 20 Apr 2022 22:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=mu8S7v2+yIIYr27xdOSi4EHBuU4U5CgTF4Ylx5Dz/BI=; b=PYyAgP9uZnxPPMWvYg5LnMFTPxm2E6pLbRrAcU/dscoCgO/x0ktPFgi256ZLA+deTL KOIxUSxbiI4miiCVUibvNrnAfQeQaP6Nr0la9JzVEeh5cOrgSBi/T8xZZbBTtwdDrbLe g1+3BI0JvBsYzjrixFmZR1qYlfrI+sY95MMMc4ucQ4jYsTfuf8JzV419BAcKSubHOZjL FAuAqV25rrbX2y5Wgw4yLUwTQI6r8UFqooSmvNJHxLxVdBy8kazBKu+W36gCndmYmsde jA1ul95eFuok405Yvp/nqz13Aa5vSLeCA3E/jY/9h0//Z3XHlDVXRUtrC0aaWfKLJ8do eApg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=mu8S7v2+yIIYr27xdOSi4EHBuU4U5CgTF4Ylx5Dz/BI=; b=FZr6lizYZRhtJKPl8C6d38Sh41H+zq3POzh7phQRi5GRELHF4GDt0oGLcm2PW7FAXr nB5OzGb1xX61cPo7iQjEn9rd2JLk9UdCNB54jf4CYOrM4myR8JLpCLccLUkEAvi2oubX DfaIcP6c4K4b69TSS0jrIhCm/WyCKndbV0/aKYfQsEXP+FaSSpTsj7E7EyJ9nl8wXECC DO2rfGM8QbOx6zNHsO4dy/iFwO7e9EBOgc09cjoW0/XcV19OEx20Upd1KR0DBu4UZx3y pkCT9hBE0RmoB4Kh2LW+EADniIHt5EW6bE9Va5Y17gM+88f/U5ArYjIc33sUJSvQyhNl 8UGA== X-Gm-Message-State: AOAM531FPPJrrHuSegrD8xE3549+pfCxSSbExr5wAk9M/vz2cg/K76MG y31nTAmuO+R0kIQjKPiokS/g2f7FNGM= X-Google-Smtp-Source: ABdhPJxmaAbVovNLi8D75cNfyL0H1kQKibpXNvJ6X0FctHZg5gaczyarmrObnkBFl8IGYkIwKZAh/A== X-Received: by 2002:a63:ff03:0:b0:39d:ac7f:d97a with SMTP id k3-20020a63ff03000000b0039dac7fd97amr22469523pgi.362.1650519915750; Wed, 20 Apr 2022 22:45:15 -0700 (PDT) Received: from voyager.lan ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id j7-20020a056a00130700b004b9f7cd94a4sm23323809pfu.56.2022.04.20.22.45.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 22:45:15 -0700 (PDT) From: Joel Stanley To: pdbg@lists.ozlabs.org Date: Thu, 21 Apr 2022 15:15:09 +0930 Message-Id: <20220421054509.184150-1-joel@jms.id.au> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [Pdbg] [PATCH] Makefile.am: Disable -Wunused-const-variable for generated file X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" The shipped gdb parser will fail to build due to this warning and Werror: src/gdb_parser_precompile.c:249:18: error: ‘gdb_en_main’ defined but not used [-Werror=unused-const-variable=] 249 | static const int gdb_en_main = 97; | ^~~~~~~~~~~ src/gdb_parser_precompile.c:246:18: error: ‘gdb_first_final’ defined but not used [-Werror=unused-const-variable=] 246 | static const int gdb_first_final = 97; | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Disable that specific warning like we do for the generated version. Signed-off-by: Joel Stanley --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index 4f7cdbdfb815..616030e37a8f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -116,6 +116,7 @@ endif libpdbg/dtb.c: $(DT_headers) src/pdbg-gdb_parser.$(OBJEXT): CFLAGS+=-Wno-unused-const-variable +src/pdbg-gdb_parser_precompile.$(OBJEXT): CFLAGS+=-Wno-unused-const-variable pdbg_LDADD = libpdbg.la libccan.a \ -L.libs -lrt