Issue 3882: Use cast(void) instead of value capture

This commit is contained in:
Per Nordlöw 2014-03-18 23:50:18 +01:00
parent 9876b28ab5
commit d701f90275
5 changed files with 16 additions and 16 deletions

View file

@ -65,8 +65,8 @@ int main(char[][] args)
// Bring in unit test for module by referencing function in it
cmp("foo", "bar"); // string
const fcc = filenameCharCmp('a', 'b'); // path
const inn = isNaN(1.0); // math
cast(void)filenameCharCmp('a', 'b'); // path
cast(void)isNaN(1.0); // math
std.conv.to!double("1.0"); // std.conv
OutBuffer b = new OutBuffer(); // outbuffer
auto r = regex(""); // regex
@ -78,7 +78,7 @@ int main(char[][] args)
Clock.currTime(); // datetime
Exception e = new ReadException(""); // stream
din.eof(); // cstream
const ivd = isValidDchar(cast(dchar)0); // utf
cast(void)isValidDchar(cast(dchar)0); // utf
std.uri.ascii2hex(0); // uri
std.zlib.adler32(0,null); // D.zlib
auto t = task!cmp("foo", "bar"); // parallelism
@ -101,12 +101,12 @@ int main(char[][] args)
assert(x[1] == 3);
assert(x[2] == 45);
const sin3 = std.math.sin(3.0);
cast(void)std.math.sin(3.0);
std.mathspecial.gamma(6.2);
std.demangle.demangle("hello");
const iaa = std.uni.isAlpha('A');
cast(void)std.uni.isAlpha('A');
std.file.exists("foo");