From 7d083b3d2f69cce3e4b1f59a731614ec9f60b171 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 13 Aug 2020 17:25:40 +0200 Subject: Fix unused variable warnings --- wscript | 2 -- zix/trie.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index 0a8626b..135dd77 100644 --- a/wscript +++ b/wscript @@ -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 diff --git a/zix/trie.c b/zix/trie.c index 369b647..aa323c0 100644 --- a/zix/trie.c +++ b/zix/trie.c @@ -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; } -- cgit v1.2.1