summaryrefslogtreecommitdiff
path: root/mysys/my_net.c
diff options
context:
space:
mode:
authorMagne Mahre <magne.mahre@oracle.com>2011-03-30 16:14:13 +0200
committerMagne Mahre <magne.mahre@oracle.com>2011-03-30 16:14:13 +0200
commitb8faa8f2c69a13c83d763f8d8605dcf3612c1257 (patch)
tree483924e453a403147a0c6a6bd899529983311d50 /mysys/my_net.c
parenta7d383cbb8db5478c1c53a025afda967ad09299b (diff)
downloadmariadb-git-b8faa8f2c69a13c83d763f8d8605dcf3612c1257.tar.gz
Fix-up after commit of Bug#11900714
The patch fixes a build problem on MacOSX, where the compiler complains about unused parameters.
Diffstat (limited to 'mysys/my_net.c')
-rw-r--r--mysys/my_net.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mysys/my_net.c b/mysys/my_net.c
index 3d139bb46c3..e2cc0679134 100644
--- a/mysys/my_net.c
+++ b/mysys/my_net.c
@@ -112,8 +112,10 @@ extern pthread_mutex_t LOCK_gethostbyname_r;
*/
struct hostent *my_gethostbyname_r(const char *name,
- struct hostent *result, char *buffer,
- int buflen, int *h_errnop)
+ struct hostent *result __attribute__((unused)),
+ char *buffer __attribute__((unused)),
+ int buflen __attribute__((unused)),
+ int *h_errnop)
{
struct hostent *hp;
pthread_mutex_lock(&LOCK_gethostbyname_r);