Fix unused result warnings