Remove a bunch of unused variables, and useless assignments

Detected by clang-tidy.
This commit is contained in:
Emanuele Torre authored and Nico Williams committed 2023-09-27 21:50:44 -05:00
1 parent 2b709727a9
commit 623ace27e8
4 files changed
+3 -5

No files matched your search

+1 -1
View File
@@ -1242,7 +1242,7 @@ int jq_compile_args(jq_state *jq, const char* str, jv args) {
if (nerrors == 0) {
nerrors = builtins_bind(jq, &program);
if (nerrors == 0) {
nerrors = block_compile(program, &jq->bc, locations, args = args2obj(args));
nerrors = block_compile(program, &jq->bc, locations, args2obj(args));
}
} else
jv_free(args);