Add consts

+ fix gcc-8 warnings
This commit is contained in:
George Lu
2018-08-09 11:38:09 -07:00
parent 6f480927af
commit 0ece2e5cdc
2 changed files with 27 additions and 24 deletions
+2 -1
View File
@@ -514,9 +514,10 @@ static size_t benchMem(const void* src, size_t srcSize, U32 benchNb, int cLevel,
/* benchmark loop */
{
void* dstBuffv = (void*)dstBuff;
r = BMK_benchFunction(benchFunction, buff2,
NULL, NULL, 1, &src, &srcSize,
(void **)&dstBuff, &dstBuffSize, NULL, g_nbIterations);
&dstBuffv, &dstBuffSize, NULL, g_nbIterations);
if(r.error) {
DISPLAY("ERROR %d ! ! \n", r.error);
errorcode = r.error;