summaryrefslogtreecommitdiffstats
path: root/src/strindex.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-09 02:29:04 +0000
committerDavid Robillard <d@drobilla.net>2012-08-09 02:29:04 +0000
commitd06c35c6603859a575993ee3dac5244c529e09f5 (patch)
treef256922db71cd71ac3e65e0238925edf35da32e5 /src/strindex.c
parent3b899b4f8c72990679c33d480b968882b0e6f960 (diff)
downloadzix-d06c35c6603859a575993ee3dac5244c529e09f5.tar.gz
zix-d06c35c6603859a575993ee3dac5244c529e09f5.tar.bz2
zix-d06c35c6603859a575993ee3dac5244c529e09f5.zip
Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes.
git-svn-id: http://svn.drobilla.net/zix/trunk@72 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'src/strindex.c')
-rw-r--r--src/strindex.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/strindex.c b/src/strindex.c
index 886d261..bd97db5 100644
--- a/src/strindex.c
+++ b/src/strindex.c
@@ -190,8 +190,11 @@ ZIX_API
ZixStatus
zix_strindex_find(ZixStrindex* t, const char* p, char** match)
{
- ZixStrindexNode* n = t->root;
- const char* orig_p = p;
+#ifndef NDEBUG
+ const char* orig_p = p;
+#endif
+
+ ZixStrindexNode* n = t->root;
size_t child_i;
*match = NULL;