Build fails with -DNOVERBOSELOG set
Was investigating building knot-resolver without verbose logging and noticed that specifying the flag causes the build to fail. Build executes sucessfully with out the flag. Building v3.1.0.
lib/resolve.c: In function 'kr_resolve_finish': lib/resolve.c:1614:40: error: 'rplan' undeclared (first use in this function) struct kr_query *last = kr_rplan_last(rplan); ^~~~~
Took a look at
resovle.c and noticed that rplan isn't declared in
NOVERBOSELOG is defined.
#ifndef NOVERBOSELOG struct kr_rplan *rplan = &request->rplan; #endif