Fix unused return value for read with -O3 flags