Why warning are coming with Visual Studio 2022 (17.2.6) version?
Hi,
We have been compiling code with Visual Studio 2022 (17.1.3) version and not seeing any warnings.
But when we updated Visual Studio to latest available version that is Visual Studio 2022 (17.2.6) - we see a lot of warnings.
Can you please explain why these warnings are coming up now, and why they were not coming with previous version.
Also if there is a roadmap to suppress these warnings in coming Visual Studio updates.
Below are few examples of warnings which have started coming with new version (17.2.6) and were not seen with older version (17.1.3)
Please do let me know if you need any more details.
warning C4191: 'type cast': unsafe conversion from 'FARPROC' to 'LPFNBCT'
warning C4242: '=': conversion from '__int64' to 'int', possible loss of data
warning C4311: 'type cast': pointer truncation from 'HANDLE *' to 'DWORD'
warning C4057: 'function': 'LPDWORD' differs in indirection to slightly different base types from 'unsigned int *'
warning C4312: 'type cast': conversion from 'DWORD' to 'HANDLE *' of greater size
-thanks,
Nitin Jain