how to find the warning code with visual studio 2022

alice alice 100 Reputation points
2024-09-30T00:34:41.08+00:00

I use opencv

When I build my project, I see warnings that I don't know how to address, and I'm not sure where the related code is located.

In my project, I don't know where the code I used is located, specifically in C:\opencv\include\opencv2\core\matx.inl.hpp.

these warning show on IntelliSense

User's image

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2024-09-30T04:01:17.8166667+00:00

    Hi @alice alice, 

    Welcome to Microsoft Q&A! 

    To locate the code causing the warning, you can open the file (like matx.inl.hpp) and search for the line number mentioned in the warning (like 165). 

    To see more information of the warnings, you can also right-click on the warning and click on “Show Columns” to show the specific path and file. 

    Or you can check the warning in the Output window. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.