summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-26 22:55:12 +0000
committerDenis Vlasenko2007-01-26 22:55:12 +0000
commit8b942c66395436c6dce3a280d8fa227c0453b9bc (patch)
treea95f67e4535fcb206a8c743aa7e8ee6b68171e16 /include
parent86724af484ec1b28410afb6457dd0be7c9bc16fb (diff)
downloadbusybox-8b942c66395436c6dce3a280d8fa227c0453b9bc.zip
busybox-8b942c66395436c6dce3a280d8fa227c0453b9bc.tar.gz
fix "expr has no effect" warning
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index def6124..d2da056 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -321,7 +321,7 @@ len_and_sockaddr* host2sockaddr(const char *host, int port);
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.