slavapestov/factor — Issue #368: Windows compilation is broken
Author: erg
Created: 2011-11-08 18:32:26+00:00
State: open

In vm.cpp, line 27:

```c
safepoint(this)
```

This code makes a warning (which we upgrade to an error):

```
vm\vm.cpp(27) : error C2220: warning treated as error - no 'object' file generated
vm\vm.cpp(27) : warning C4355: 'this' : used in base member initializer list
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\Bin\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\Bin\amd64\nmake.EXE"' : return code '0x2'
Stop.
Build failed.
```

We could disable the warning with this:

```c
#pragma warning(push)
#pragma warning(disable: 4355)
#pragma warning(pop)
```