Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. (latest VS2017) Using the C++ Core Check (code analysis) trigger warning on corrected code.

(latest VS2017) Using the C++ Core Check (code analysis) trigger warning on corrected code.

Scheduled Pinned Locked Moved C / C++ / MFC
c++asp-netdatabasecomquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Maximilien
    wrote on last edited by
    #1

    (not really urgent) I decided to try out the [C++ Core Check](https://msdn.microsoft.com/en-us/library/mt762841.aspx) code analysis on a sample project to see if it will be useful for our project. One one line it says that I need to put a const, so I put the const, and re-run the analysis. The line still will trigger the warning. Any way to reset the warnings so that it won't retrigger the same warnings ? Any experience with that ? Thanks

    I'd rather be phishing!

    M 1 Reply Last reply
    0
    • M Maximilien

      (not really urgent) I decided to try out the [C++ Core Check](https://msdn.microsoft.com/en-us/library/mt762841.aspx) code analysis on a sample project to see if it will be useful for our project. One one line it says that I need to put a const, so I put the const, and re-run the analysis. The line still will trigger the warning. Any way to reset the warnings so that it won't retrigger the same warnings ? Any experience with that ? Thanks

      I'd rather be phishing!

      M Offline
      M Offline
      Michael_Davies
      wrote on last edited by
      #2

      If you right-click the warning do you get a menu with Suppress on it?

      M 1 Reply Last reply
      0
      • M Michael_Davies

        If you right-click the warning do you get a menu with Suppress on it?

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        I don't want to suppress the warning, just to not report it on lines that it should not appears (after fixing the warning). Anyway, it is only a minor annoyance, will keep testing/using it . Thanks.

        I'd rather be phishing!

        M 1 Reply Last reply
        0
        • M Maximilien

          I don't want to suppress the warning, just to not report it on lines that it should not appears (after fixing the warning). Anyway, it is only a minor annoyance, will keep testing/using it . Thanks.

          I'd rather be phishing!

          M Offline
          M Offline
          Michael_Davies
          wrote on last edited by
          #4

          As I say, if you right-click the warning you can suppress it for that line, not suppress the warning for every line.

          Richard Andrew x64R 1 Reply Last reply
          0
          • M Michael_Davies

            As I say, if you right-click the warning you can suppress it for that line, not suppress the warning for every line.

            Richard Andrew x64R Offline
            Richard Andrew x64R Offline
            Richard Andrew x64
            wrote on last edited by
            #5

            Yes but he's saying that he did what the warning wanted and the warning keeps coming up anyway on that line. He's asking for a way to make it work right. :laugh:

            The difficult we do right away... ...the impossible takes slightly longer.

            M 1 Reply Last reply
            0
            • Richard Andrew x64R Richard Andrew x64

              Yes but he's saying that he did what the warning wanted and the warning keeps coming up anyway on that line. He's asking for a way to make it work right. :laugh:

              The difficult we do right away... ...the impossible takes slightly longer.

              M Offline
              M Offline
              Michael_Davies
              wrote on last edited by
              #6

              "Any way to reset the warnings so that it won't retrigger the same warnings ?"

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups