From patchwork Tue Sep 20 08:17:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 57789 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C8D2438582A6 for ; Tue, 20 Sep 2022 08:17:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id B3DF73858D28 for ; Tue, 20 Sep 2022 08:17:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B3DF73858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 61492219EE for ; Tue, 20 Sep 2022 08:17:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1663661854; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/1FmR790v9/qVEzPnWzjwLPVrnoE1371wj+QGk/Rua4=; b=JdmTFVJKQ7w+yY/wJkFWN20p2FAs6uhjQzZ0L96oINWba4QP4b2sls37ElwHDsR/CmyH7H ixZyw6AGIp+LOF4UtJF+Z/v+Oc5S4nxBmWMjKE7kga9fnBsOQHP69mx4sdwnAS/S3t41Zw Ily9Qwlw0QIXObBtubWUUCmYUwj2zLM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1663661854; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/1FmR790v9/qVEzPnWzjwLPVrnoE1371wj+QGk/Rua4=; b=w64qXD/fVKy6M4oc5YmpxjzoBSdpTXj96JzUr0nzpVQiLK/w60HCLhxrEXdIN41lMbAUvq +nadzNPzgrctTWAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 51D1413ABB for ; Tue, 20 Sep 2022 08:17:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id XS0MEx53KWPKYwAAMHmgww (envelope-from ) for ; Tue, 20 Sep 2022 08:17:34 +0000 Message-ID: <0ba95b1a-f5c8-31b3-d5e7-063efe178a11@suse.cz> Date: Tue, 20 Sep 2022 10:17:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH][pushed] contrib: skip new egrep warning To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" contrib/ChangeLog: * filter-clang-warnings.py: Skip egrep: warning: egrep is obsolescent; using grep -E. --- contrib/filter-clang-warnings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/filter-clang-warnings.py b/contrib/filter-clang-warnings.py index 942cd30b659..3c68be028a8 100755 --- a/contrib/filter-clang-warnings.py +++ b/contrib/filter-clang-warnings.py @@ -39,7 +39,7 @@ def skip_warning(filename, message): '-Wignored-attributes', '-Wgnu-zero-variadic-macro-arguments', '-Wformat-security', '-Wundefined-internal', '-Wunknown-warning-option', '-Wc++20-extensions', - '-Wbitwise-instead-of-logical'], + '-Wbitwise-instead-of-logical', 'egrep is obsolescent'], 'insn-modes.cc': ['-Wshift-count-overflow'], 'insn-emit.cc': ['-Wtautological-compare'], 'insn-attrtab.cc': ['-Wparentheses-equality'], @@ -57,8 +57,8 @@ def skip_warning(filename, message): 'lex.cc': ['-Wc++20-attribute-extensions'], } - for name, ignores in ignores.items(): - for i in ignores: + for name, ignore in ignores.items(): + for i in ignore: if name in filename and i in message: return True return False