{"action":"opened","issue":{"url":"https://api.github.com/repos/tpaviot/oce/issues/636","repository_url":"https://api.github.com/repos/tpaviot/oce","labels_url":"https://api.github.com/repos/tpaviot/oce/issues/636/labels{/name}","comments_url":"https://api.github.com/repos/tpaviot/oce/issues/636/comments","events_url":"https://api.github.com/repos/tpaviot/oce/issues/636/events","html_url":"https://github.com/tpaviot/oce/issues/636","id":168530438,"number":636,"title":"Warnings for type conversions in 64 bit build","user":{"login":"GyrosGeier","id":6635080,"avatar_url":"https://avatars.githubusercontent.com/u/6635080?v=3","gravatar_id":"","url":"https://api.github.com/users/GyrosGeier","html_url":"https://github.com/GyrosGeier","followers_url":"https://api.github.com/users/GyrosGeier/followers","following_url":"https://api.github.com/users/GyrosGeier/following{/other_user}","gists_url":"https://api.github.com/users/GyrosGeier/gists{/gist_id}","starred_url":"https://api.github.com/users/GyrosGeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GyrosGeier/subscriptions","organizations_url":"https://api.github.com/users/GyrosGeier/orgs","repos_url":"https://api.github.com/users/GyrosGeier/repos","events_url":"https://api.github.com/users/GyrosGeier/events{/privacy}","received_events_url":"https://api.github.com/users/GyrosGeier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-31T18:10:25Z","updated_at":"2016-07-31T18:10:25Z","closed_at":null,"body":"I 've built OCE for both 32 and 64 bit using VS 2015, and the 64 bit build has a bunch of pretty ominous warnings:\r\n\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_File.cxx(1127): warning C4312: 'type cast': conversion from 'DWORD' to 'Standard_CString' of greater size [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_File.cxx(1184): warning C4312: 'type cast': conversion from 'DWORD' to 'Standard_CString' of greater size [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_File.cxx(2002): warning C4311: 'type cast': pointer truncation from 'Standard_PCharacter' to 'DWORD' [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_File.cxx(2002): warning C4302: 'type cast': truncation from 'Standard_PCharacter' to 'DWORD' [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_File.cxx(2015): warning C4311: 'type cast': pointer truncation from 'Standard_PCharacter' to 'DWORD' [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_File.cxx(2015): warning C4302: 'type cast': truncation from 'Standard_PCharacter' to 'DWORD' [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_File.cxx(2036): warning C4311: 'type cast': pointer truncation from 'Standard_PCharacter' to 'DWORD' [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_File.cxx(2036): warning C4302: 'type cast': truncation from 'Standard_PCharacter' to 'DWORD' [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_FileNode.cxx(851): warning C4244: 'return': conversion from 'intptr_t' to 'Standard_Integer', possible loss of data [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_FileNode.cxx(885): warning C4244: 'return': conversion from 'intptr_t' to 'Standard_Integer', possible loss of data [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_Host.cxx(218): warning C4996: 'GetVersionExA': was declared deprecated [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_Process.cxx(307): warning C4244: 'return': conversion from 'intptr_t' to 'Standard_Integer', possible loss of data [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_Thread.cxx(143): warning C4244: 'return': conversion from 'intptr_t' to 'DWORD', possible loss of data [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_Thread.cxx(249): warning C4312: 'type cast': conversion from 'DWORD' to 'Standard_Address' of greater size [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\OSD\\OSD_Thread.cxx(279): warning C4312: 'type cast': conversion from 'DWORD' to 'Standard_Address' of greater size [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKernel\\TKernel.vcxproj]\r\n\r\n    C:\\Jenkins\\oce\\1078749c\\src\\LDOM\\LDOM_OSStream.cxx(106): warning C4244: 'return': conversion from 'std::streamsize' to 'int', possible loss of data [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKCDF\\TKCDF.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\LDOM\\LDOM_OSStream.cxx(128): warning C4244: 'initializing': conversion from 'std::streamsize' to 'int', possible loss of data [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKCDF\\TKCDF.vcxproj]\r\n    C:\\Jenkins\\oce\\1078749c\\src\\LDOM\\LDOM_OSStream.cxx(156): warning C4244: '+=': conversion from 'std::streamsize' to 'Standard_Integer', possible loss of data [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKCDF\\TKCDF.vcxproj]\r\n\r\n    C:\\Jenkins\\oce\\1078749c\\src\\Graphic3d\\Graphic3d_ArrayOfPrimitives.lxx(286): warning C4312: 'reinterpret_cast': conversion from 'Standard_Integer' to 'const Graphic3d_Vec4ub *' of greater size [C:\\Jenkins\\oce\\1078749c\\adm\\cmake\\TKV3d\\TKV3d.vcxproj]\r\n\r\n[Full build log](http://ci.kicad-pcb.org/job/windows-oce-msvc-head/build=debug,cpu=amd64,label=windows/13/consoleFull) and [warning summary](http://ci.kicad-pcb.org/job/windows-oce-msvc-head/build=debug,cpu=amd64,label=windows/13/warnings39Result/) are available as well."}}
{"actor":{"display_login":"GyrosGeier"}}