fixing warnings in nw.cpp with unused variables