summaryrefslogtreecommitdiff
path: root/storage/mroonga/vendor/groonga
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-04-26 16:33:05 +0300
committerMonty <monty@mariadb.org>2018-04-26 17:35:12 +0300
commit2ccd6716fc730b3ff5e1bc2f8dc08ac561db3cb4 (patch)
tree9ad948abd204d9389d8dd45cbd8bfd373f2a861c /storage/mroonga/vendor/groonga
parent0bdc15d86ea94df6ed7ac07e69309d7b9b7281b2 (diff)
downloadmariadb-git-2ccd6716fc730b3ff5e1bc2f8dc08ac561db3cb4.tar.gz
Fix a lot of compiler warnings found by -Wunused
Diffstat (limited to 'storage/mroonga/vendor/groonga')
-rw-r--r--storage/mroonga/vendor/groonga/lib/alloc.c2
-rw-r--r--storage/mroonga/vendor/groonga/lib/grn.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/storage/mroonga/vendor/groonga/lib/alloc.c b/storage/mroonga/vendor/groonga/lib/alloc.c
index 5d77c19e74c..face9a3dde1 100644
--- a/storage/mroonga/vendor/groonga/lib/alloc.c
+++ b/storage/mroonga/vendor/groonga/lib/alloc.c
@@ -644,7 +644,7 @@ grn_ctx_free_lifo(grn_ctx *ctx, void *ptr,
}
}
-#if USE_DYNAMIC_MALLOC_CHANGE
+#if defined(USE_DYNAMIC_MALLOC_CHANGE)
grn_malloc_func
grn_ctx_get_malloc(grn_ctx *ctx)
{
diff --git a/storage/mroonga/vendor/groonga/lib/grn.h b/storage/mroonga/vendor/groonga/lib/grn.h
index 0d0768eba41..541c19d3e21 100644
--- a/storage/mroonga/vendor/groonga/lib/grn.h
+++ b/storage/mroonga/vendor/groonga/lib/grn.h
@@ -259,7 +259,7 @@ typedef pthread_key_t grn_thread_key;
# define THREAD_SETSPECIFIC(key, value) pthread_setspecific(key, value)
# define THREAD_GETSPECIFIC(key) pthread_getspecific(key)
-#if USE_UYIELD
+#if defined(USE_UYIELD)
extern int grn_uyield_count;
#define GRN_TEST_YIELD() do {\
if (((++grn_uyield_count) & (0x20 - 1)) == 0) {\