From patchwork Mon Aug 22 03:14:13 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: 645 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp312428wro; Sun, 21 Aug 2022 20:14:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Pzu1m59ZUWkegXvkxnKHHIKuGDexGdYSPGrVQ4hnuZSahF/UTg6mu08EIhwzvw5Zjq84o X-Received: by 2002:a05:6402:3583:b0:43d:6943:44a with SMTP id y3-20020a056402358300b0043d6943044amr14232418edc.409.1661138096875; Sun, 21 Aug 2022 20:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661138096; cv=none; d=google.com; s=arc-20160816; b=ULAZwAe143VHP9gAC+7UeYZUAZME7acL2UGB0nzajpgC68Aw/8vhumxk3Ikz2RozyH xRdp7HBVllfZpt3XKKDisOcEOvYs/bnF91mVgf3cAONeX9QW3qv/f4ZJKpioaAC+Xb5A mqbZbCQ+iTvree4reYRgyDgW7glHgUimey4rdSqHdrDVD4Fm/p2Lnbnj0BezA72c8OyX 0rblqNfmKWgb2HxJPhakNW1ynooKddgae5YvT1TBfxeApj6j0hYTA7pRsEuGe3VHNj5c tdGrX8P05KczYLT/aUCLNPXOCA/IrfHuQtdENa3BepCdutIjEwfpLyJ6yYUo9NMa70Fi toPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:to:subject:from:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=yE+Vv7LbRfH3wFQBYiQWIfyMVigOc9DiSQIxujsTLUc=; b=C7rJiiNccJ95KOM2Nl2CFrM35uIUkc9JCY81GmEzmqwlNME6O9p38DgdjO3uGi33nh ZDt1a0uXkfGmkfj7vAHmuBflwpKUbdjWp5Uh3aii5khSK5gCfiXiA7uMi0WJqBc0mS02 siDfudfJUdx4+9k5Lk9LgYBi8qpmHydOsbwBbwelCZ+0whbM+kbJeZ2o9VpRyvS78A6D gmjijooUeCb7CbMVojj3I6w5yEHOHz7TfBySGG0907LbXyXUG2R/n1oErXjFlh1LiQZY wjuMovLySI5+bwfsan3nFZFnOMHn34jW9R0874tTglSdEQRGbQH1dZV8+kqtsjL07PTr i7Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@suse.cz header.s=susede2_rsa header.b=tSM0F6zN; dkim=neutral (no key) header.i=@gcc.gnu.org header.b=YLYO9E9n; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id qb30-20020a1709077e9e00b007397aa27b32si8305739ejc.891.2022.08.21.20.14.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 20:14:56 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=fail header.i=@suse.cz header.s=susede2_rsa header.b=tSM0F6zN; dkim=neutral (no key) header.i=@gcc.gnu.org header.b=YLYO9E9n; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4003F3857010 for ; Mon, 22 Aug 2022 03:14:42 +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 [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 11A59385829A for ; Mon, 22 Aug 2022 03:14:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 11A59385829A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail 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 74BF13451A; Mon, 22 Aug 2022 03:14:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1661138054; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yE+Vv7LbRfH3wFQBYiQWIfyMVigOc9DiSQIxujsTLUc=; b=tSM0F6zN8JwEC2Wh5Cv9bUbtDz6uY+uGiyJH7UpTh5qcImrILSnvpkyNVgLuERttSRhlY8 hED69+qNciF5V+T1+L2SEMiTfxc9Ov6YKAxum0ZeIdmXP6kpSawwSVOM9M4uuj7alXRqnq /E+x4Dl4hSadOICDW3hWX4GPm9X62sE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1661138054; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yE+Vv7LbRfH3wFQBYiQWIfyMVigOc9DiSQIxujsTLUc=; b=YLYO9E9ndIWf8MvSPXPUKkauOY0vGP+v04GoUP5Xp5oMARitmHITJD8Y69/2FTgqspdzpT pwl2aQFYNJuA5TDA== 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 557B4139F9; Mon, 22 Aug 2022 03:14:14 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id dH66E4b0AmNOWgAAMHmgww (envelope-from ); Mon, 22 Aug 2022 03:14:14 +0000 Message-ID: Date: Mon, 22 Aug 2022 05:14:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH (pushed)] analyzer: add missing final keyword 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_SOFTFAIL, TXREP, T_SCC_BODY_TEXT_LINE 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+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1741829541157473316?= X-GMAIL-MSGID: =?utf-8?q?1741829541157473316?= Fixes the following clang warning: gcc/analyzer/region-model.cc:5096:8: warning: 'subclass_equal_p' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] gcc/analyzer/ChangeLog: * region-model.cc: Add missing final keyword. --- gcc/analyzer/region-model.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/analyzer/region-model.cc b/gcc/analyzer/region-model.cc index ec29be259b5..5a64c00ef14 100644 --- a/gcc/analyzer/region-model.cc +++ b/gcc/analyzer/region-model.cc @@ -5093,7 +5093,7 @@ public: return "float_as_size_arg_diagnostic"; } - bool subclass_equal_p (const pending_diagnostic &other) const + bool subclass_equal_p (const pending_diagnostic &other) const final override { return same_tree_p (m_arg, ((const float_as_size_arg &) other).m_arg); }