[PATCH] hurd: Avoid -Wfree-labels warning in _hurd_intr_rpc_mach_msg

Florian Weimer fweimer@redhat.com
Wed May 28 07:23:46 GMT 2025


This is required after commit 4f4c4fcde76aedc1f5362a51d98ebb57a28fbce9
("Turn on -Wfree-labels by default if available").

---
 hurd/intr-msg.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/hurd/intr-msg.c b/hurd/intr-msg.c
index 1c2fe3f20c..f9bf5c1c67 100644
--- a/hurd/intr-msg.c
+++ b/hurd/intr-msg.c
@@ -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

base-commit: a289cf711e0797ed8fe23a1222904fbb35560356



More information about the Libc-alpha mailing list