svn commit: trunk/busybox/include

vda at busybox.net vda at busybox.net
Fri Jan 26 22:55:12 UTC 2007


Author: vda
Date: 2007-01-26 14:55:12 -0800 (Fri, 26 Jan 2007)
New Revision: 17543

Log:
fix "expr has no effect" warning


Modified:
   trunk/busybox/include/libbb.h


Changeset:
Modified: trunk/busybox/include/libbb.h
===================================================================
--- trunk/busybox/include/libbb.h	2007-01-26 22:54:01 UTC (rev 17542)
+++ trunk/busybox/include/libbb.h	2007-01-26 22:55:12 UTC (rev 17543)
@@ -321,7 +321,7 @@
 len_and_sockaddr* host_and_af2sockaddr(const char *host, int port, sa_family_t af);
 #else
 /* [we evaluate af: think about "host_and_af2sockaddr(..., af++)"] */
-#define host_and_af2sockaddr(host, port, af) ((af), host2sockaddr((host), (port)))
+#define host_and_af2sockaddr(host, port, af) ((void)(af), host2sockaddr((host), (port)))
 #endif
 /* Assign sin[6]_port member if the socket is of corresponding type,
  * otherwise no-op. Useful for ftp.




More information about the busybox-cvs mailing list