summaryrefslogtreecommitdiff
path: root/sql/lex.h
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.local>2007-03-08 12:04:45 +0300
committerunknown <kostja@bodhi.local>2007-03-08 12:04:45 +0300
commite943fb725c1794db9f1f5dfd0fcf055345b9d17a (patch)
treeba26e5f160e4e705d1c70196dbb5aa1b7db5489e /sql/lex.h
parent7f531f16ffead84d6cc38d7cfe765564169b0a0f (diff)
downloadmariadb-git-e943fb725c1794db9f1f5dfd0fcf055345b9d17a.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. sql/lex.h: Fix -ansi -pedantic warning. sql/lex_symbol.h: Fix -ansi -pedantic warning.
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