]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Avoid -Wfree-labels warning in _hurd_intr_rpc_mach_msg
authorFlorian Weimer <fweimer@redhat.com>
Wed, 28 May 2025 07:59:24 +0000 (09:59 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 28 May 2025 07:59:24 +0000 (09:59 +0200)
This is required after commit 4f4c4fcde76aedc1f5362a51d98ebb57a28fbce9
("Turn on -Wfree-labels by default if available").

Reviewed-by: Sam James <sam@gentoo.org>
hurd/intr-msg.c

index 1c2fe3f20c9f72515345710c9829c5c47438f4d1..f9bf5c1c67163be647e5827dcbd56c56575e9939 100644 (file)
@@ -183,9 +183,12 @@ _hurd_intr_rpc_mach_msg (mach_msg_header_t *msg,
                  switch (name)
                    {
                    case MACH_MSG_TYPE_MOVE_SEND:
-                     mach_port_t *ports = (mach_port_t *) data;
-                     for (i = 0; i < number; i++)
-                       __mach_port_deallocate (__mach_task_self (), *ports++);
+                     {
+                       mach_port_t *ports = (mach_port_t *) data;
+                       for (i = 0; i < number; i++)
+                         __mach_port_deallocate (__mach_task_self (),
+                                                 *ports++);
+                     }
                      if (ty->msgtl_header.msgt_longform)
                        ty->msgtl_name = MACH_MSG_TYPE_COPY_SEND;
                      else