summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorDavi Arnaut <davi.arnaut@oracle.com>2010-11-10 19:14:47 -0200
committerDavi Arnaut <davi.arnaut@oracle.com>2010-11-10 19:14:47 -0200
commit80246ac8b8d0d2db08feae2a643a3dc89f9022d6 (patch)
tree47ce960f9bf094be0d4331b1cf1e69691bf1b3a9 /libmysql
parent5bbe83f6d676f4ae95e855c1877bc1b6aa07b9c6 (diff)
downloadmariadb-git-80246ac8b8d0d2db08feae2a643a3dc89f9022d6.tar.gz
Bug#58057: 5.1 libmysql/libmysql.c unused variable/compile failure
Bug#57995: Compiler flag change build error on OSX 10.4: my_getncpus.c Bug#57996: Compiler flag change build error on OSX 10.5 : bind.c Bug#57994: Compiler flag change build error : my_redel.c Bug#57993: Compiler flag change build error on FreeBsd 7.0 : regexec.c Bug#57992: Compiler flag change build error on FreeBsd : mf_keycache.c Bug#57997: Compiler flag change build error on OSX 10.6: debug_sync.cc Fix assorted compiler generated warnings.
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 8c612b6894e..deb7cd10d2a 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -131,8 +131,8 @@ int STDCALL mysql_server_init(int argc __attribute__((unused)),
mysql_port = MYSQL_PORT;
#ifndef MSDOS
{
- struct servent *serv_ptr;
- char *env;
+ char *env;
+ struct servent *serv_ptr __attribute__((unused));
/*
if builder specifically requested a default port, use that