fix various /analyze warnings