summaryrefslogtreecommitdiff
path: root/sql/udf_example.c
diff options
context:
space:
mode:
authorStaale Smedseng <staale.smedseng@sun.com>2009-09-17 17:10:30 +0200
committerStaale Smedseng <staale.smedseng@sun.com>2009-09-17 17:10:30 +0200
commit38b6d49e826e1fde46c445d790eb7609b14c4220 (patch)
tree3cf056e46acab4ed88aecfc3171b43e75db69e48 /sql/udf_example.c
parent7b07ef35c010ec73003803c505deb9dfe14263d5 (diff)
downloadmariadb-git-38b6d49e826e1fde46c445d790eb7609b14c4220.tar.gz
Bug #43414 Parenthesis (and other) warnings compiling MySQL
with gcc 4.3.2 This is the fifth patch cleaning up more GCC warnings about variables used before initialized using the new macro UNINIT_VAR().
Diffstat (limited to 'sql/udf_example.c')
-rw-r--r--sql/udf_example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/udf_example.c b/sql/udf_example.c
index db48984eed8..019d4d834dd 100644
--- a/sql/udf_example.c
+++ b/sql/udf_example.c
@@ -139,10 +139,10 @@ typedef long long longlong;
#include <mysql.h>
#include <ctype.h>
-static pthread_mutex_t LOCK_hostname;
-
#ifdef HAVE_DLOPEN
+static pthread_mutex_t LOCK_hostname;
+
/* These must be right or mysqld will not find the symbol! */
my_bool metaphon_init(UDF_INIT *initid, UDF_ARGS *args, char *message);