public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-292] [Ada] Suppress warning in g-sthcso for non-unix platforms
@ 2022-05-11 8:54 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-11 8:54 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:02b8770a444bef9bb9a3dc23747e9b257f3af087
commit r13-292-g02b8770a444bef9bb9a3dc23747e9b257f3af087
Author: Johannes Kliemann <kliemann@adacore.com>
Date: Fri Jan 28 14:54:21 2022 +0000
[Ada] Suppress warning in g-sthcso for non-unix platforms
gcc/ada/
* libgnat/g-sthcso.adb: Suppress warning about unneeded use type
clause.
Diff:
---
gcc/ada/libgnat/g-sthcso.adb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gcc/ada/libgnat/g-sthcso.adb b/gcc/ada/libgnat/g-sthcso.adb
index f045c02b99e..fd99eebbdb7 100644
--- a/gcc/ada/libgnat/g-sthcso.adb
+++ b/gcc/ada/libgnat/g-sthcso.adb
@@ -41,7 +41,12 @@ function C_Socketpair
Protocol : C.int;
Fds : not null access Fd_Pair) return C.int
is
+ -- This use type clause is not required on all platforms
+ -- using this implementation. So we suppress the warning
+ -- for the platforms that already use this type.
+ pragma Warnings (Off, "use clause for type *");
use type C.char_array;
+ pragma Warnings (On, "use clause for type *");
L_Sock, C_Sock, P_Sock : C.int := Failure;
-- Listening socket, client socket and peer socket
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-11 8:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11 8:54 [gcc r13-292] [Ada] Suppress warning in g-sthcso for non-unix platforms Pierre-Marie de Rodat
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).