From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1914) id 39A613835410; Wed, 11 May 2022 08:54:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 39A613835410 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Pierre-Marie de Rodat To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-292] [Ada] Suppress warning in g-sthcso for non-unix platforms X-Act-Checkin: gcc X-Git-Author: Johannes Kliemann X-Git-Refname: refs/heads/master X-Git-Oldrev: c8482b1e77a0008986c4019d0d69993f80f03775 X-Git-Newrev: 02b8770a444bef9bb9a3dc23747e9b257f3af087 Message-Id: <20220511085448.39A613835410@sourceware.org> Date: Wed, 11 May 2022 08:54:48 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2022 08:54:48 -0000 https://gcc.gnu.org/g:02b8770a444bef9bb9a3dc23747e9b257f3af087 commit r13-292-g02b8770a444bef9bb9a3dc23747e9b257f3af087 Author: Johannes Kliemann 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