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. Debug options in Visual C++

Debug options in Visual C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studiodebuggingquestion
5 Posts 4 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.
  • B Offline
    B Offline
    BrentTheHack
    wrote on last edited by
    #1

    Is there any way to turn off warnings for visual studio headers while still keeping a high warning level on your project code? I looked briefly in the forums but couldn't find anything that specifically applies.

    P G 2 Replies Last reply
    0
    • B BrentTheHack

      Is there any way to turn off warnings for visual studio headers while still keeping a high warning level on your project code? I looked briefly in the forums but couldn't find anything that specifically applies.

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      Use the #pragma warning directives.


      "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!

      M 1 Reply Last reply
      0
      • P PJ Arends

        Use the #pragma warning directives.


        "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!

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

        You can also modify the warning level for particular source files, if there is one that causes you consternation. I often do this when dealing with 3rd party files that I have no control over.

        1 Reply Last reply
        0
        • B BrentTheHack

          Is there any way to turn off warnings for visual studio headers while still keeping a high warning level on your project code? I looked briefly in the forums but couldn't find anything that specifically applies.

          G Offline
          G Offline
          Gary R Wheeler
          wrote on last edited by
          #4

          I use warning level 4, and don't see warnings out of the 'visual studio headers'. What kind of warnings are you seeing, and which compiler (VC6, VS.NET 2002, VS.NET 2003) are you using?


          Software Zen: delete this;

          B 1 Reply Last reply
          0
          • G Gary R Wheeler

            I use warning level 4, and don't see warnings out of the 'visual studio headers'. What kind of warnings are you seeing, and which compiler (VC6, VS.NET 2002, VS.NET 2003) are you using?


            Software Zen: delete this;

            B Offline
            B Offline
            BrentTheHack
            wrote on last edited by
            #5

            Sorry, I guess I wasn't specific enough. VC6 compiler. The warnings are usually like this; c:\program files\microsoft visual studio\vc98\include\xmemory(39) : warning C4100: '_P' : unreferenced formal parameter c:\program files\microsoft visual studio\vc98\include\xmemory(41) : warning C4100: '_P' : unreferenced formal parameter c:\program files\microsoft visual studio\vc98\include\vector(249) : warning C4663: C++ language change: to explicitly specialize class template 'vector' use the following syntax: template<> class vector > ... I'm also getting alot of signed/unsigned mismatches and casting warnings. It's ok though, I just modified the offending files with pragma directive and everything seems to be working fine. Thanks! Brent

            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