fixed gcc warning on a switch code path

This commit is contained in:
Yann Collet
2018-02-09 16:16:27 -08:00
parent af48f0b62b
commit 04a3f85ce7
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -760,6 +760,7 @@ static size_t ZSTD_buildSeqTable(FSE_DTable* DTableSpace, const FSE_DTable** DTa
}
default : /* impossible */
assert(0);
return ERROR(GENERIC);
}
}
+2 -2
View File
@@ -461,8 +461,8 @@ static int BMK_benchMem(const void* srcBuffer, size_t srcSize,
} /* for (testNb = 1; testNb <= (g_nbSeconds + !g_nbSeconds); testNb++) */
if (g_displayLevel == 1) { /* hidden display mode -q, used by python speed benchmark */
double cSpeed = (double)srcSize / fastestC;
double dSpeed = (double)srcSize / fastestD;
double const cSpeed = (double)srcSize / fastestC;
double const dSpeed = (double)srcSize / fastestD;
if (g_additionalParam)
DISPLAY("-%-3i%11i (%5.3f) %6.2f MB/s %6.1f MB/s %s (param=%d)\n", cLevel, (int)cSize, ratio, cSpeed, dSpeed, displayName, g_additionalParam);
else