int foo(){ return 0; }

void function()
{
return (void)foo();
}

これはC++的にOKですか? 
gcc,VC++.NETではコンパイルが通るのを確認済み。(VC6は通らないはず)