diff --git a/src/bdecli.c b/src/bdecli.c index 8b9c11c..ee79ea9 100644 --- a/src/bdecli.c +++ b/src/bdecli.c @@ -427,7 +427,7 @@ void bde_config_write(pBDEConfigEntry list, char *szFileName) /* check if we should put the 'end of container' byte sequence */ if ((current->next) && /* there is a next entry */ - (current->entry_type = BDE_Variable) && /* current entry is a variable */ + (current->entry_type == BDE_Variable) && /* current entry is a variable */ (current->container != current->next->container)) /* and it has a different container */ { eob = 0; diff --git a/src/build-vc10.cmd b/src/build-vc10.cmd index 8b2cee2..983d580 100644 --- a/src/build-vc10.cmd +++ b/src/build-vc10.cmd @@ -7,7 +7,7 @@ set INCLUDE=%VCDIR%\VC\INCLUDE;%PSDK%\Include\um set LIB=%VCDIR%\VC\LIB;%PSDK%\Lib\winv6.3\um\x86 set PATH=%VCDIR%\Common7\IDE;%VCDIR%\VC\BIN;%PATH% -cl.exe /W3 bdecli.c > bdecli.vc10.err +cl.exe /W4 bdecli.c > bdecli.vc10.err rem /W1 to /W4 for warnings, /WX to treat warning as errors, /O2 for moderate optimization del *.obj