projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix OSX/clang compiler warning.
[m6w6/libmemcached]
/
libmemcached
/
do.cc
diff --git
a/libmemcached/do.cc
b/libmemcached/do.cc
index ef63927b55e01fd294bfc4c91ff3869a58250acb..73ef06d34f11063859e19c92e331a4f27288a47a 100644
(file)
--- a/
libmemcached/do.cc
+++ b/
libmemcached/do.cc
@@
-30,7
+30,7
@@
static memcached_return_t _vdo_udp(org::libmemcached::Instance* instance,
vector[0].length= UDP_DATAGRAM_HEADER_LENGTH;
msg.msg_iov= (struct iovec*)vector;
vector[0].length= UDP_DATAGRAM_HEADER_LENGTH;
msg.msg_iov= (struct iovec*)vector;
-#if
defined(TARGET_OS_OSX) && TARGET_OS_OSX
+#if
def __APPLE__
msg.msg_iovlen= int(count);
#else
msg.msg_iovlen= count;
msg.msg_iovlen= int(count);
#else
msg.msg_iovlen= count;
@@
-57,6
+57,9
@@
static memcached_return_t _vdo_udp(org::libmemcached::Instance* instance,
return MEMCACHED_SUCCESS;
#else
return MEMCACHED_SUCCESS;
#else
+ (void)instance;
+ (void)vector;
+ (void)count;
return MEMCACHED_FAILURE;
#endif
}
return MEMCACHED_FAILURE;
#endif
}