mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
add cast(void) to silence warnings in tests (#8169)
This commit is contained in:
parent
cf83da3ec7
commit
26bb8fcae4
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue