cppcheck fix --HEAD

recommended release build SRCDIR=build CFGDIR=cfg