public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5541] Fix warning on new Ada testcase
@ 2023-11-16 21:45 Eric Botcazou
0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2023-11-16 21:45 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1c1ee8097c3d96c74107a317f68b0ad40cf9207b
commit r14-5541-g1c1ee8097c3d96c74107a317f68b0ad40cf9207b
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:45 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:45 [gcc r14-5541] 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).