Fix linux warning about unused return value