From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3045FC71153 for ; Mon, 28 Aug 2023 14:48:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229683AbjH1Orz (ORCPT ); Mon, 28 Aug 2023 10:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231886AbjH1Or0 (ORCPT ); Mon, 28 Aug 2023 10:47:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D753C1B1 for ; Mon, 28 Aug 2023 07:46:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693233988; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pZdzI8OrS2Hjao1GfLBIVYRYk8Mi/f6x/grUOT1rTSY=; b=V++fUossgpNQOyPsC3w5Eu7wsgYvC79IJdRAlwo+nzdFjiuGLfWARXdCQtjhQLm956t1kC sXduSMEytZycNUH77sqPTqrsad+ytA936ly/lnG4MTewEkoAIF20qYn/LtFrwEcq0xPaeE pU7zTPCpQrMMsPojXioAkVNEVSB8wmA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-244-gT1AI3L_O0GrNbsaG0iYWA-1; Mon, 28 Aug 2023 10:46:26 -0400 X-MC-Unique: gT1AI3L_O0GrNbsaG0iYWA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 42BD585CBE6 for ; Mon, 28 Aug 2023 14:46:26 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.193.45]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B79CA40D2839; Mon, 28 Aug 2023 14:46:25 +0000 (UTC) From: Thomas Haller To: NetFilter Cc: Thomas Haller Subject: [PATCH nft 6/8] src: suppress "-Wunused-but-set-variable" warning with "parser_bison.c" Date: Mon, 28 Aug 2023 16:43:56 +0200 Message-ID: <20230828144441.3303222-7-thaller@redhat.com> In-Reply-To: <20230828144441.3303222-1-thaller@redhat.com> References: <20230828144441.3303222-1-thaller@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Clang warns: parser_bison.c:7606:9: error: variable 'nft_nerrs' set but not used [-Werror,-Wunused-but-set-variable] int yynerrs = 0; ^ parser_bison.c:72:25: note: expanded from macro 'yynerrs' #define yynerrs nft_nerrs ^ Signed-off-by: Thomas Haller --- src/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile.am b/src/Makefile.am index ad22a918c120..63a4ef43dae3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -88,6 +88,7 @@ libparser_la_CFLAGS = ${AM_CFLAGS} \ -Wno-missing-prototypes \ -Wno-missing-declarations \ -Wno-implicit-function-declaration \ + -Wno-unused-but-set-variable \ -Wno-nested-externs \ -Wno-undef \ -Wno-redundant-decls -- 2.41.0