Hello list.
Compiling with 'clang-cl' on Windows-10, I saw this important warning: network.c(796,10): warning: variable 'counter' set but not used [-Wunused-but-set-variable] size_t* counter = (size_t*)data; ^
So shouldn't the function be:
static int __loc_network_tree_count(struct loc_network* network, void* data) { size_t* counter = (size_t*)data;
// Increase the counter for each network (*counter)++; return 0; }
But I fail to see this ret-val is used for anything.
BTW, disasm now is correct: inc qword ptr [rdx] xor eax,eax ret