Message ID | 97b4d7cd-2cf3-13a0-9c77-c9d1176f6a4f@suse.cz |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:38f:b0:2d5:3c95:9e21 with SMTP id 15csp1872474pxh; Tue, 16 Aug 2022 02:08:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR5NQNkeO6utWOVJiN3HBW/FPydngnWr41vxtOjscoqT+PcOPrH0FU8IHGxzLGf0HYHNrrLe X-Received: by 2002:a17:906:9749:b0:730:c005:5d59 with SMTP id o9-20020a170906974900b00730c0055d59mr12696401ejy.419.1660640895431; Tue, 16 Aug 2022 02:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660640895; cv=none; d=google.com; s=arc-20160816; b=PJPiqLKOcMex373KDmRbpOxjmK3ZQsVyurEVAtA6O6WnMSrZ7nvNWRBojMYV/hW3Mx e7etEYEW/hog4ZKJybzuw3ErAn2rPhzNUHDxtasLq2RnQLu/jtvofFVHdlNT0oOpyQuv CZly0xD83wxdxpvFtRKksMYjYTjgJsWZ48u5RmQNUzNm24eps09sveYAHwqnbBdF9iZB CvfgyoOeeJ7niQPVQRuOBoh5dQYHhTeSJKki3PtsU4Xikna5cF9RWZSWKY99y3bEx9PB f4sRZ9xb+yIU1hy3MsvoR3jhJPQPFN+HpDMpwQpZsZ8olIM4V+uIwto1dmcapIkiq8l/ +Etg== 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=qYS8xmcCYaw5lR1zo+OZZkJoR4q91YHODAy0R0LEfsY=; b=GFGS7cPr2xLt3YLAY3PNHb/16rzRdyul/FDQmvR0UVLd3qLc35QiqWitBz0/4RbfDR WBxAiSAH0Dt+O7q4BoLZrJ4LTp/Np8d/J6h+XWojCYWHlILUDnnmlsi+N2ByxwIFgIh8 QzxIC1zvCCrcMBQPyQ4OgdkKesyqvmkNdygS9pQr5jWjp8Bz61sa5koXbW6YhVhyQwUA O+wJ2Qn0p7bld96iPyVcHNyfw2FjlWrd8mE48xAAyuuZoXwwsNjDGfIrpVoXIwFJv3Qi WedHMfq9bZHtZ2XfoIMMl3qNbBBARKMV0nS+ilhfcu6BFEsUQCgPWHZ57Xomq/eyUDEr Ajfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@suse.cz header.s=susede2_rsa header.b=lgAFu5q3; dkim=neutral (no key) header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id qk40-20020a1709077fa800b007315809ec96si8743084ejc.400.2022.08.16.02.08.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 02:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=fail header.i=@suse.cz header.s=susede2_rsa header.b=lgAFu5q3; dkim=neutral (no key) header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 338C53858284 for <ouuuleilei@gmail.com>; Tue, 16 Aug 2022 09:08:12 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 60DA23858C2D for <gcc-patches@gcc.gnu.org>; Tue, 16 Aug 2022 09:07:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 60DA23858C2D 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-out2.suse.de (Postfix) with ESMTPS id 2141E1FAC5; Tue, 16 Aug 2022 09:07:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1660640868; 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=qYS8xmcCYaw5lR1zo+OZZkJoR4q91YHODAy0R0LEfsY=; b=lgAFu5q3w8H2cwLhiD13qPhsJVmg9C8FtzyCcCtDMAkvuz9Y1WmJ6G8ORsjuqKvRbMWQ9R ZlCToPErqfHBfmlXzwLnwlI3344M61tAzjk+OhGoMJC7VTUARDG9I05oOeGK6IE7B1vsuz YmzKVfqyCdJ6mShKkxvBNVh4Hj9p4Ik= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1660640868; 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=qYS8xmcCYaw5lR1zo+OZZkJoR4q91YHODAy0R0LEfsY=; b=RER6IKqhzdaHCsHEnQTVTUp4Uja1Q11THJpZIu67CK3vsaIekVFjPqoy7RHEkWRgQgu5Vx wb3vXWenSvssK8Bg== 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 09453139B7; Tue, 16 Aug 2022 09:07:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id u3hDAWRe+2ImcAAAMHmgww (envelope-from <mliska@suse.cz>); Tue, 16 Aug 2022 09:07:48 +0000 Message-ID: <97b4d7cd-2cf3-13a0-9c77-c9d1176f6a4f@suse.cz> Date: Tue, 16 Aug 2022 11:07:47 +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?= <mliska@suse.cz> Subject: [PATCH][pushed] VR: add missing override keyworks To: gcc-patches@gcc.gnu.org Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1741308187353281443?= X-GMAIL-MSGID: =?utf-8?q?1741308187353281443?= |
Series |
[pushed] VR: add missing override keyworks
|
|
Commit Message
Martin Liška
Aug. 16, 2022, 9:07 a.m. UTC
Pushing as it follows the same pattern as: virtual void set (tree, tree, value_range_kind = VR_RANGE) override; Martin Address: gcc/value-range-equiv.h:57:8: warning: 'set_undefined' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] gcc/value-range-equiv.h:58:8: warning: 'set_varying' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] gcc/ChangeLog: * value-range-equiv.h (class value_range_equiv): --- gcc/value-range-equiv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Thanks. On Tue, Aug 16, 2022 at 11:07 AM Martin Liška <mliska@suse.cz> wrote: > > Pushing as it follows the same pattern as: > > virtual void set (tree, tree, value_range_kind = VR_RANGE) override; > > Martin > > Address: > > gcc/value-range-equiv.h:57:8: warning: 'set_undefined' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] > gcc/value-range-equiv.h:58:8: warning: 'set_varying' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] > > gcc/ChangeLog: > > * value-range-equiv.h (class value_range_equiv): > --- > gcc/value-range-equiv.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/gcc/value-range-equiv.h b/gcc/value-range-equiv.h > index 0a52d1372a1..ad8c640b15b 100644 > --- a/gcc/value-range-equiv.h > +++ b/gcc/value-range-equiv.h > @@ -54,8 +54,8 @@ class GTY((user)) value_range_equiv : public value_range > bool equal_p (const value_range_equiv &, bool ignore_equivs) const; > > /* Types of value ranges. */ > - void set_undefined (); > - void set_varying (tree); > + void set_undefined () override; > + void set_varying (tree) override; > > /* Equivalence bitmap methods. */ > bitmap equiv () const { return m_equiv; } > -- > 2.37.1 >
diff --git a/gcc/value-range-equiv.h b/gcc/value-range-equiv.h index 0a52d1372a1..ad8c640b15b 100644 --- a/gcc/value-range-equiv.h +++ b/gcc/value-range-equiv.h @@ -54,8 +54,8 @@ class GTY((user)) value_range_equiv : public value_range bool equal_p (const value_range_equiv &, bool ignore_equivs) const; /* Types of value ranges. */ - void set_undefined (); - void set_varying (tree); + void set_undefined () override; + void set_varying (tree) override; /* Equivalence bitmap methods. */ bitmap equiv () const { return m_equiv; }