Fixed gcc warning on unused return value.