From patchwork Wed Nov 10 08:58:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Marie de Rodat X-Patchwork-Id: 1553324 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=vf6nejH1; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HpzdQ2Z1Tz9sRK for ; Wed, 10 Nov 2021 20:12:26 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 837E83857C76 for ; Wed, 10 Nov 2021 09:12:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 837E83857C76 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1636535543; bh=hL+YACdQl3EWZHoM+UVHsFapAvHhdrXpwlLmqyIYVH8=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=vf6nejH1uZWyekfVBgAE+Yyg2yYlZRGNI1kAaCFc79kDYPg8E2Z9RhVC6M0q+4DGp eOSS/KnycEp1bIh0i2pjaZ5idxsYZegqFf9RxjCO6vQPhDmqipJK4OuYHBkFLsteHj Bk9vf+1POrDuxLHMp2zeWvfxKytBKOU3xNvqtL5w= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by sourceware.org (Postfix) with ESMTPS id D2D883857C76 for ; Wed, 10 Nov 2021 08:58:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D2D883857C76 Received: by mail-lf1-x12a.google.com with SMTP id k37so4362513lfv.3 for ; Wed, 10 Nov 2021 00:58:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=hL+YACdQl3EWZHoM+UVHsFapAvHhdrXpwlLmqyIYVH8=; b=sS+5p8ZHO8fqsxtY+n5poeMY+C5H0ATyWNAcAu3tfFRdStRC51+SswtsT+HC/Mkncn laEVX4Re3OtMJKkGY4Va07ciJeS4zGXQNSqqwVuD6REX1+cOi3Cg9/LU3SaREZQMZZ95 eMN2yB8XU778e+GFiMvPwu4aHe+EVX3ZqLQB8fjMeo3KS3WMyR2a0+q6gdDMT/P8WfbG eht6MDT+8lYH0WEi3KHm5p8ogow7pmlkeCMa3u+tJMhFC80aDkzdtG6Qrqf9koR3JkNZ 1bhgLgG9fU8m+Qw0K4gVRe27sTGuOr5cBxk/umqpzhkKTNLcjAnYgJr8HIt7PId8oerE e0eA== X-Gm-Message-State: AOAM531V2Wv2UrjtW+DFSs/FJWNzmBmmVls58Uofbzc1lIq8v17mjDFY IuHZqyHhBStHk2Ye7rPuCd42AHyAj3e3VA== X-Google-Smtp-Source: ABdhPJyaiowcMPkNMkuBL2QFLzi9Fl1B1kjtLBsOzJkxY1zfe+d1LeGL9Ayh5TU9V0szyHOMLymgOg== X-Received: by 2002:a05:6512:3708:: with SMTP id z8mr13690621lfr.74.1636534730760; Wed, 10 Nov 2021 00:58:50 -0800 (PST) Received: from adacore.com ([2a02:2ab8:224:2ce:72b5:e8ff:feef:ee60]) by smtp.gmail.com with ESMTPSA id k12sm2403685lfg.31.2021.11.10.00.58.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 00:58:50 -0800 (PST) Date: Wed, 10 Nov 2021 08:58:49 +0000 To: gcc-patches@gcc.gnu.org Subject: [Ada] Avoid warnings regarding rep clauses in generics -- follow-on Message-ID: <20211110085849.GA2811241@adacore.com> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-13.0 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Pierre-Marie de Rodat via Gcc-patches From: Pierre-Marie de Rodat Reply-To: Pierre-Marie de Rodat Cc: Bob Duff Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" Codepeer is complaining about uninitialized variables. This fixes it. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * repinfo.adb (List_Component_Layout): Initialize Sbit. diff --git a/gcc/ada/repinfo.adb b/gcc/ada/repinfo.adb --- a/gcc/ada/repinfo.adb +++ b/gcc/ada/repinfo.adb @@ -1123,7 +1123,7 @@ package body Repinfo is Npos : constant Uint := Normalized_Position (Ent); Fbit : constant Uint := Normalized_First_Bit (Ent); Spos : Uint; - Sbit : Uint; + Sbit : Uint := No_Uint; Lbit : Uint; begin