diff options
author | David Robillard <d@drobilla.net> | 2020-08-13 17:25:40 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-13 17:25:40 +0200 |
commit | 7d083b3d2f69cce3e4b1f59a731614ec9f60b171 (patch) | |
tree | 6eae2caf1b0bf1a2fbcc97ef5ca679a4d20b1d05 | |
parent | 56b8eb22da76b58a60a797994cecb6499e236896 (diff) | |
download | zix-7d083b3d2f69cce3e4b1f59a731614ec9f60b171.tar.gz zix-7d083b3d2f69cce3e4b1f59a731614ec9f60b171.tar.bz2 zix-7d083b3d2f69cce3e4b1f59a731614ec9f60b171.zip |
Fix unused variable warnings
-rw-r--r-- | wscript | 2 | ||||
-rw-r--r-- | zix/trie.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -51,7 +51,6 @@ def configure(conf): '-Wno-reserved-id-macro', '-Wno-shorten-64-to-32', '-Wno-sign-conversion', - '-Wno-unused-variable', ], 'gcc': [ '-Wno-bad-function-cast', @@ -66,7 +65,6 @@ def configure(conf): '-Wno-suggest-attribute=const', '-Wno-suggest-attribute=format', '-Wno-suggest-attribute=pure', - '-Wno-unused-variable', ], 'msvc': [ '/wd4191', # unsafe function conversion @@ -266,6 +266,7 @@ trie_insert_internal(ZixTrieNode** n_ptr, ZixTrieNode** c = trie_insert_tail(n_ptr, str, first, len); assert(zix_trie_node_check(*n_ptr)); assert(zix_trie_node_check(*c)); + (void)c; return ZIX_STATUS_SUCCESS; } else { /* Match at this node, continue search downwards (or match) */ @@ -292,6 +293,7 @@ trie_insert_internal(ZixTrieNode** n_ptr, ZixTrieNode** c = trie_insert_tail(n_ptr, str, first, len); assert(zix_trie_node_check(*n_ptr)); assert(zix_trie_node_check(*c)); + (void)c; return ZIX_STATUS_SUCCESS; } |