From patchwork Mon Nov 14 13:52:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 19819 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2156358wru; Mon, 14 Nov 2022 05:56:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7A5RmmctrGsUEbDTsx0ydc3ozscAU6+3wRX6WqSLLF+p4EILFH522rRt29TXk2fa8RK4U2 X-Received: by 2002:a17:906:fb96:b0:7ad:dcf7:c4f with SMTP id lr22-20020a170906fb9600b007addcf70c4fmr10295276ejb.631.1668434165704; Mon, 14 Nov 2022 05:56:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668434165; cv=none; d=google.com; s=arc-20160816; b=j8lYRgAE1l5vhkEt2FBef7ws4MydLXa1RQHVy1UPJ4PXTx8e8eJsdWxSSiBfRV0Aqg eBMk6lNFg0IO6IQS9sNbnge3qu35ur4Zoq1KYI5LT2KgKhOSgys+yWCgwaFqsBBeWJGw ivHQafqAi+uIW3jpshJjI03KrhqHmg648AH1uevYLb2KN3iziqUazj88FN4bf8o/dBYX EuAsYVioEBKaFT2Fcn8y4LBApR4JECJTDOlSRUoyd+2ZOXm1rYZFNRyzi20XFHa/bQIh 3t9V4ZULBcL8AWW90+khVxuT1JNAT0j92QMY7SZN5DdB4JvB9GH3Hr1nTAEhW7N43IUZ akxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=QzpaxUhtM7LBSiWz/qjSHuAPPeunljyKhsI3z6GSnpw=; b=0X5st63IrbYCYmlcM7qyzUXcBkqqjICtdgerGlQTHbyGFZOc/ulrugpQ75wnQOw/YS ueg/1l2VNcEJ9mlNNdySEQTbeY+6mhLT9ukzgcCAqVASHyPEr1tOpv8YwSRAQeLWOhBL 1BwGAe77NL8CPJ5wZhmMZlH4l6fqGKIGIG4SeIxjV3xH6PJhNPPWrFNgJFauuyR3WmxR I7hUQe5pLS8jq6UONP6iD0boQOTu/eGC3UtzR5T3vt/JQy1wrkkRqD0zFlSaf9U1DiFr n0ONsioC85dnXIBcMoG56YirX4U2iQeHUpQLvOXKBqKrYDdSdCgW6muDway67SiCwLOb jysA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=nwOydbrF; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id b61-20020a509f43000000b0045a1e2373dbsi8438917edf.44.2022.11.14.05.56.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 05:56:05 -0800 (PST) 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=pass header.i=@gcc.gnu.org header.s=default header.b=nwOydbrF; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 31DC93898395 for ; Mon, 14 Nov 2022 13:54:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31DC93898395 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668434044; bh=QzpaxUhtM7LBSiWz/qjSHuAPPeunljyKhsI3z6GSnpw=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=nwOydbrFaCgjVp6nFHFSHobLBeNwoBz/kcttPPMSmB66eHGr/Odokc2G4v3Feflod cxols5QJb46E+CyGE0EzoWndq/sRSPTpgYmLDkJscPgK9nOkUPQ7r568peg3B5gGen Kr/YRVtN4ydpeXq9ApM9NtYPcCfvihkd75KBnjck= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 09702382D38F for ; Mon, 14 Nov 2022 13:53:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 09702382D38F Received: by mail-wm1-x330.google.com with SMTP id 129-20020a1c0287000000b003cfe48519a6so1025000wmc.0 for ; Mon, 14 Nov 2022 05:53:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QzpaxUhtM7LBSiWz/qjSHuAPPeunljyKhsI3z6GSnpw=; b=s89BlxFpRO8i+l3M1k8zRgtzcvlY70YobB7ti5/LDSO7DWS/mmcMSt/vHuqnzrRDtN kI/63ENjSNJwWqi0+X6G9mTH2tKYhWL2jabeJu2J5UCLVK8BHpsfTWYtRt8MwMt5hKEx ZJUFFCqMexfrrscmu70OYWpBIt8XWrD+mxf1lHCulGnwlv5YerxJbWhxCRGENV4JByyt 0wJf68s1mf70OgAMQ1BXXu5djQGKhJhItLJYQHcBrHcVcf+hD4m4TFdJctmY7GTTVquD h51O1VaiP+AXMg+CzpIRjqQ9MvauHc2q2Ug9je7go8Mmiv6JPU/9sboaa53iEKdAGCO7 INbg== X-Gm-Message-State: ANoB5pmOtYdaN6kE+4jxNhNZePZ4YW7+iFdtMVEabdZK43RhQzxpobx3 tF+wSzeoNvkgB6JUgQP2oYI5jPFXTrGPGA== X-Received: by 2002:a05:600c:524f:b0:3cf:7126:1fd0 with SMTP id fc15-20020a05600c524f00b003cf71261fd0mr7575528wmb.14.1668433980868; Mon, 14 Nov 2022 05:53:00 -0800 (PST) Received: from localhost.localdomain (static-176-191-105-132.ftth.abo.bbox.fr. [176.191.105.132]) by smtp.gmail.com with ESMTPSA id g13-20020a5d554d000000b002366e3f1497sm9860024wrw.6.2022.11.14.05.53.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 05:53:00 -0800 (PST) To: gcc-patches@gcc.gnu.org Cc: Boris Yakobowski Subject: [COMMITTED] ada: Silence CodePeer false positive Date: Mon, 14 Nov 2022 14:52:58 +0100 Message-Id: <20221114135258.53285-1-poulhies@adacore.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: , X-Patchwork-Original-From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= From: =?utf-8?q?Marc_Poulhi=C3=A8s?= Reply-To: =?utf-8?q?Marc_Poulhi=C3=A8s?= 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?1749480023671893447?= X-GMAIL-MSGID: =?utf-8?q?1749480023671893447?= From: Boris Yakobowski gcc/ada/ * sem_case.adb: silence false positive warning emitted by CodePeer on predefined equality for type Choice_Range_Info. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_case.adb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/ada/sem_case.adb b/gcc/ada/sem_case.adb index 244e53f5752..f89c3ca386f 100644 --- a/gcc/ada/sem_case.adb +++ b/gcc/ada/sem_case.adb @@ -209,6 +209,8 @@ package body Sem_Case is null; end case; end record; + pragma Annotate (CodePeer, False_Positive, "raise exception", + "function is abstract, hence never called"); function "=" (X, Y : Choice_Range_Info) return Boolean is abstract; type Choices_Range_Info is array (Choice_Id) of Choice_Range_Info;