Unused value warnings
Opened this issue · 0 comments
jfolz commented
I'm getting some set but unused value warnings:
cnmem.cpp:909:33: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable]
Block *curr = mUsedBlocks, *prev = NULL;
^~~~
cnmem.cpp:933:12: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
Block *result = curr;
^~~~~~
cnmem.cpp:1221:31: warning: unused variable ‘lockStatus’ [-Wunused-variable]
cnmemStatus_t lockStatus = mutexes[i]->unlock();
^~~~~~~~~~
Not a big deal, but as far as I can tell these are warranted. I can make a PR to fix these if that's OK to do and desired.