add cast(void) to silence warnings in tests (#8169)

This commit is contained in:
aG0aep6G 2021-07-20 02:19:00 +02:00 committed by GitHub
parent cf83da3ec7
commit 26bb8fcae4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1846,7 +1846,7 @@ else version (Posix)
stat_t statbuf;
// check that both lvalues and rvalues work
timeLastAccessed(statbuf);
timeLastAccessed(stat_t.init);
cast(void) timeLastAccessed(stat_t.init);
}
}

View file

@ -8251,7 +8251,7 @@ if (alignment > 0 && !((alignment - 1) & alignment))
void test(size_t size)
{
import core.stdc.stdlib;
alloca(size);
cast(void) alloca(size);
alignmentTest();
}
foreach (i; 0 .. 10)