Commit 96fe9332 authored by Vladimír Čunát's avatar Vladimír Čunát

fix clang warnings

parent 2f8419cd
......@@ -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);
......
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment