Fix unused return value warning a different way