public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-8076] Fix warning on new Ada testcase
@ 2023-11-16 21:47 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2023-11-16 21:47 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:cc67ee72fdd844b4d916dcd29e82f678ed103658

commit r13-8076-gcc67ee72fdd844b4d916dcd29e82f678ed103658
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Thu Nov 16 22:41:53 2023 +0100

    Fix warning on new Ada testcase
    
    gcc/testsuite/
            * gnat.dg/varsize4.adb (Func): Initialize Byte_Read parameter.

Diff:
---
 gcc/testsuite/gnat.dg/varsize4.adb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gnat.dg/varsize4.adb b/gcc/testsuite/gnat.dg/varsize4.adb
index 3d0430de5aa..0ea5135b7fc 100644
--- a/gcc/testsuite/gnat.dg/varsize4.adb
+++ b/gcc/testsuite/gnat.dg/varsize4.adb
@@ -2,9 +2,10 @@
 
 package body Varsize4 is
 
-   function Func (bytes_read : out Natural) return Arr is
+   function Func (Bytes_Read : out Natural) return Arr is
       Ret : Arr := (others => False);
    begin
+      Bytes_Read := 0;
       return Ret;
    end;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-16 21:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-16 21:47 [gcc r13-8076] Fix warning on new Ada testcase Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).