diff --git a/std/file.d b/std/file.d index 9f26ebb53..6bcb231d7 100644 --- a/std/file.d +++ b/std/file.d @@ -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); } } diff --git a/std/typecons.d b/std/typecons.d index 5af60e3a3..b49b989ef 100644 --- a/std/typecons.d +++ b/std/typecons.d @@ -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)