Original Post
Hi, I am using C++ and Visual Studio .NET 2003. My program compiles with alot of warnings, like below. Is it possible for warnings like this, especially the ones that say " 'signed char' : forcing value to bool 'true' or 'false' (performance warning)" to cause memory errors, eg memory leaks or memory corruption. Vertex.cpp Vertex.cpp(29) : warning C4805: '==' : unsafe mix of type 'BOOL' and type 'bool' in operation Vertex.cpp(54) : warning C4244: '=' : conversion from 'LONG' to 'float', possible loss of data Vertex.cpp(54) : warning C4244: '=' : conversion from 'LONG' to 'float', possible loss of data Vertex.cpp(55) : warning C4244: '=' : conversion from 'LONG' to 'float', possible loss of data Vertex.cpp(55) : warning C4244: '=' : conversion from 'LONG' to 'float', possible loss of data Vertex.cpp(56) : warning C4244: '=' : conversion from 'LONG' to 'float', possible loss of data Vertex.cpp(56) : warning C4244: '=' : conversion from 'LONG' to 'float', possible loss of data Vertex.cpp(57) : warning C4244: '=' : conversion from 'LONG' to 'float', possible loss of data Vertex.cpp(57) : warning C4244: '=' : conversion from 'LONG' to 'float', possible loss of data Texture.cpp Texture.cpp(259) : warning C4244: '=' : conversion from 'double' to 'LONG', possible loss of data Texture.cpp(1910) : warning C4244: 'initializing' : conversion from 'float' to 'long', possible loss of data Texture.cpp(1911) : warning C4244: 'initializing' : conversion from 'float' to 'long', possible loss of data Texture.cpp(1912) : warning C4244: 'initializing' : conversion from 'float' to 'long', possible loss of data Texture.cpp(1913) : warning C4244: 'initializing' : conversion from 'float' to 'long', possible loss of data SubGlobals.cpp Sound.cpp Sound.cpp(179) : warning C4244: 'argument' : conversion from 'const float' to 'int', possible loss of data Sound.cpp(186) : warning C4244: 'initializing' : conversion from 'const float' to 'int', possible loss of data Sound.cpp(345) : warning C4800: 'signed char' : forcing value to bool 'true' or 'false' (performance warning) Sound.cpp(481) : warning C4244: 'initializing' : conversion from 'const float' to 'int', possible loss of data Sound.cpp(482) : warning C4800: 'signed char' : forcing value to bool 'true' or 'false' (performance warning) Sound.cpp(488) : warning C4800: 'signed char' : forcing value to bool 'true' or 'false' (performance warning) RtsMain.cpp RtsMain.cpp(372) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data RtsMain.cpp(373) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data mmgr.cpp Interface.cpp Interface.cpp(243) : warning C4018: '<' : signed/unsigned mismatch Interface.cpp(311) : warning C4805: '==' : unsafe mix of type 'BOOL' and type 'bool' in operation Interface.cpp(334) : warning C4805: '==' : unsafe mix of type 'BOOL' and type 'bool' in operation Interface.cpp(357) : warning C4805: '==' : unsafe mix of type 'BOOL' and type 'bool' in operation Interface.cpp(370) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data Interface.cpp(372) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data Interface.cpp(403) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data Interface.cpp(404) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data Interface.cpp(421) : warning C4805: '==' : unsafe mix of type 'BOOL' and type 'bool' in operation Interface.cpp(444) : warning C4805: '==' : unsafe mix of type 'BOOL' and type 'bool' in operation Interface.cpp(467) : warning C4805: '==' : unsafe mix of type 'BOOL' and type 'bool' in operation Interface.cpp(480) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data Interface.cpp(482) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data Interface.cpp(513) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data Interface.cpp(514) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data Interface.cpp(747) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data Interface.cpp(748) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data Interface.cpp(775) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data Interface.cpp(776) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data Interface.cpp(1113) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data Interface.cpp(1115) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data Interface.cpp(1130) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data Interface.cpp(1132) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data Interface.cpp(1146) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data Interface.cpp(1148) : warning C4244: '=' : conversion from 'double' to 'long', possible loss of data Interface.cpp(1155) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data Interface.cpp(1266) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data Interface.cpp(1269) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data Interface.cpp(1272) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data Interface.cpp(1273) : warning C4244: '=' : conversion from 'float' to 'LONG', possible loss of data Interface.cpp(1804) : warning C4244: 'argument' : conversion from 'double' to 'const float', possible loss of data Interface.cpp(2029) : warning C4244: 'argument' : conversion from 'double' to 'const float', possible loss of data Interface.cpp(2043) : warning C4805: '==' : unsafe mix of type 'BOOL' and type 'bool' in operation Interface.cpp(2256) : warning C4805: '==' : unsafe mix of type 'BOOL' and type 'bool' in operation Globals.cpp D3D9Engine.cpp D3D9Engine.cpp(110) : warning C4244: 'argument' : conversion from 'const int' to 'FLOAT', possible loss of data D3D9Engine.cpp(110) : warning C4244: 'argument' : conversion from 'const int' to 'FLOAT', possible loss of data D3D9Engine.cpp(132) : warning C4805: '!=' : unsafe mix of type 'DWORD' and type 'bool' in operation