summaryrefslogtreecommitdiff
path: root/sql/lex.h
diff options
context:
space:
mode:
authorkostja@bodhi.local <>2007-03-08 12:04:45 +0300
committerkostja@bodhi.local <>2007-03-08 12:04:45 +0300
commita52a1f8d565774c0379567da3cb32c145c01931d (patch)
treeba26e5f160e4e705d1c70196dbb5aa1b7db5489e /sql/lex.h
parent1f91f47d5e37cfea6cec41a2ba3bf56a196fb7a4 (diff)
downloadmariadb-git-a52a1f8d565774c0379567da3cb32c145c01931d.tar.gz
Fix -ansi -pedantic warning (can't cast a pointer to function
to a pointer to object, that is, int foo(); void *bar= (void*) foo is not allowed.
Diffstat (limited to 'sql/lex.h')
-rw-r--r--sql/lex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/lex.h b/sql/lex.h
index 5299be89d35..352d80da5c6 100644
--- a/sql/lex.h
+++ b/sql/lex.h
@@ -32,10 +32,10 @@ SYM_GROUP sym_group_rtree= {"RTree keys", "HAVE_RTREE_KEYS"};
#define SYM(A) SYM_OR_NULL(A),0,0,&sym_group_common
#define F_SYM(A) SYM_OR_NULL(A)
-#define CREATE_FUNC(A) (void *)(SYM_OR_NULL(A)), &sym_group_common
+#define CREATE_FUNC(A) (void (*)())(SYM_OR_NULL(A)), &sym_group_common
#ifdef HAVE_SPATIAL
-#define CREATE_FUNC_GEOM(A) (void *)(SYM_OR_NULL(A)), &sym_group_geom
+#define CREATE_FUNC_GEOM(A) (void (*)())(SYM_OR_NULL(A)), &sym_group_geom
#else
#define CREATE_FUNC_GEOM(A) 0, &sym_group_geom
#endif