[Ada] Suppress warning in g-socthi__vxworks.adb
authorBob Duff <duff@adacore.com>
Tue, 28 Jun 2022 12:28:12 +0000 (08:28 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 12 Jul 2022 12:24:13 +0000 (12:24 +0000)
Follow-on to previous change, which missed the vxworks version of this
package.

gcc/ada/

* libgnat/g-socthi__vxworks.adb (C_Connect): Suppress new warning.

gcc/ada/libgnat/g-socthi__vxworks.adb

index aeae52d..32973b4 100644 (file)
@@ -190,7 +190,9 @@ package body GNAT.Sockets.Thin is
          return Res;
       end if;
 
-      declare
+      pragma Warnings (Off, "unreachable code");
+      declare -- unreachable if Thread_Blocking_IO is statically True
+         pragma Warnings (On, "unreachable code");
          WSet : aliased Fd_Set;
          Now  : aliased Timeval;
       begin