fix warnings for statements with no effect