fix non-void return warnings