aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/libgnat
diff options
context:
space:
mode:
authorJohannes Kliemann <kliemann@adacore.com>2022-01-28 14:54:21 +0000
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-11 08:53:18 +0000
commit02b8770a444bef9bb9a3dc23747e9b257f3af087 (patch)
treeb33e92406acdcd7a95c824950e2519a466fce509 /gcc/ada/libgnat
parentc8482b1e77a0008986c4019d0d69993f80f03775 (diff)
downloadgcc-02b8770a444bef9bb9a3dc23747e9b257f3af087.zip
gcc-02b8770a444bef9bb9a3dc23747e9b257f3af087.tar.gz
gcc-02b8770a444bef9bb9a3dc23747e9b257f3af087.tar.bz2
[Ada] Suppress warning in g-sthcso for non-unix platforms
gcc/ada/ * libgnat/g-sthcso.adb: Suppress warning about unneeded use type clause.
Diffstat (limited to 'gcc/ada/libgnat')
-rw-r--r--gcc/ada/libgnat/g-sthcso.adb5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ada/libgnat/g-sthcso.adb b/gcc/ada/libgnat/g-sthcso.adb
index f045c02..fd99eeb 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