r145: fixed two gcc warnings