[prev in list] [next in list] [prev in thread] [next in thread] 

List:       glibc-alpha
Subject:    [PATCH] Fix compilation of <hurd/signal.h> with gcc -Wall -Werror
From:       Samuel Thibault <samuel.thibault () ens-lyon ! org>
Date:       2008-08-12 23:22:25
Message-ID: 20080812232225.GZ4468 () implementation
[Download RAW message or body]

2008-13-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>

	* hurd/hurd/signal.h (HURD_MSGPORT_RPC): Add parenthesis around
	assignment used as truth value.

Index: hurd/hurd/signal.h
===================================================================
RCS file: /cvs/glibc/libc/hurd/hurd/signal.h,v
retrieving revision 1.49
diff -u -p -r1.49 signal.h
--- hurd/hurd/signal.h	19 Jul 2007 17:20:39 -0000	1.49
+++ hurd/hurd/signal.h	12 Aug 2008 23:16:59 -0000
@@ -342,10 +342,10 @@ extern mach_msg_timeout_t _hurd_interrup
     do									      \
       {									      \
 	/* Get the message port.  */					      \
-	if (__err = (fetch_msgport_expr))				      \
+	if ((__err = (fetch_msgport_expr)))				      \
 	  break;							      \
 	/* Get the reference port.  */					      \
-	if (__err = (fetch_refport_expr))				      \
+	if ((__err = (fetch_refport_expr)))				      \
 	  {								      \
 	    /* Couldn't get it; deallocate MSGPORT and fail.  */	      \
 	    __mach_port_deallocate (__mach_task_self (), msgport);	      \
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic