From d987ab5983c5bc1660f53d6026a63569675e18e7 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 28 Sep 2018 09:34:16 -0700 Subject: [PATCH] fixed unreachable section warning on Visual --- programs/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/fileio.c b/programs/fileio.c index e780d481..2c4e9f6e 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -2010,7 +2010,7 @@ FIO_analyzeFrames(fileInfo_t* info, FILE* const srcFile) && (numBytesRead == 0) && (info->compressedSize > 0) && (info->compressedSize != UTIL_FILESIZE_UNKNOWN) ) { - return info_success; + break; /* correct end of file => success */ } EXIT_IF(feof(srcFile), info_not_zstd, "Error: reached end of file with incomplete frame"); EXIT_IF(1, info_frame_error, "Error: did not reach end of file but ran out of frames");