New build warnings with Visual Studio 2022 (17.2.6) version

Ankit Chaudhari 1 Reputation point
2022-08-04T06:31:13.603+00:00

Hi,

We have updated visual studio 2022 with latest version 17.2.6. Package build using cl.exe we see
lot of new warnings related to type C4191.

I referred to below Microsoft link which says below warnings are turned off by default.

https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4191?view=msvc-170

PFB sample of the same.

Warning C4191 : type cast unsafe conversion from FARPROC to XXX.

XXX VAR = NULL;
VAR = (XXX) GetProcAddress(hLib,TCRUNHNHREQUESTSFUNC)

Requesting you to please mention plans to address the same.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,274 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Saeed Ghafori 0 Reputation points
    2023-06-09T07:08:38.1533333+00:00
    Hello everyone. I am currently in Asp.net core
      I'm creating a View and I'm writing Html code and suddenly it gets stuck and I have to close Visual and open it again. Now I've changed Windows and reinstalled Visual, and these errors are still there.
    Do you have a solution for this, or should the visual bug be updated?
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.