]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
fix clang warnings
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 10 Nov 2017 10:14:53 +0000 (11:14 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 10 Nov 2017 16:55:09 +0000 (17:55 +0100)
daemon/bindings.c
lib/layer/iterate.c
lib/zonecut.c

index ce75fb2764e78997a7df73ea9abca964f8512e77..cbbbb18be29af18089cc6deb9ec5bc8afc31c0df 100644 (file)
@@ -891,7 +891,7 @@ static int cache_get(lua_State *L)
        }
 
        /* Clear a sub-tree in cache. */
-       const char *args = lua_tostring(L, 1);
+       //const char *args = lua_tostring(L, 1);
        /* Retrieve set of keys */
        static knot_db_val_t result_set[100];
        int ret = kr_error(ENOSYS); // FIXME cache_prefixed(cache, args, result_set, 100);
index dfd738cb6efbf96e4056bc5777044ebd6b708b76..efed229ab339afa3294572291f862a776cb9202e 100644 (file)
@@ -284,7 +284,7 @@ static int update_cut(knot_pkt_t *pkt, const knot_rrset_t *rr,
                        continue;
                }
                int ret = kr_zonecut_add(cut, ns_name, NULL);
-               assert(!ret);
+               assert(!ret); (void)ret;
 
                /* Choose when to use glue records. */
                bool in_bailiwick = knot_dname_in(current_cut, ns_name);
index b7e0ca70daa104ee007c94e9217dd9e0b5ef5868..398bbbf07a242e20b2cb76093dafc15b1082271c 100644 (file)
@@ -272,7 +272,6 @@ int kr_zonecut_set_sbelt(struct kr_context *ctx, struct kr_zonecut *cut)
 static void fetch_addr(struct kr_zonecut *cut, struct kr_cache *cache, const knot_dname_t *ns, uint16_t rrtype, uint32_t timestamp)
 // LATER(optim.): excessive data copying
 {
-       uint8_t rank = 0;
        struct kr_cache_p peek = {};
        if (kr_cache_peek_exact(cache, ns, rrtype, &peek) != 0) {
                return;