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. Warning level four? Holy sh*...

Warning level four? Holy sh*...

Scheduled Pinned Locked Moved C / C++ / MFC
businessquestion
4 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.
  • P Offline
    P Offline
    Paul Oss
    wrote on last edited by
    #1

    I just (for the heck of it) compiled a project I've been working on for some time on warning 4. I always leave the default of warning 3. My project does produce some warnings because of a few mixes of BOOL and bool types... anyway... so there I am, minding my own business, compiling at level 4, and I get something like 311 warnings. 308 of them were in Microsoft's standard built in header and source files- like fstream! What's up with that?!? Paul

    T S M 3 Replies Last reply
    0
    • P Paul Oss

      I just (for the heck of it) compiled a project I've been working on for some time on warning 4. I always leave the default of warning 3. My project does produce some warnings because of a few mixes of BOOL and bool types... anyway... so there I am, minding my own business, compiling at level 4, and I get something like 311 warnings. 308 of them were in Microsoft's standard built in header and source files- like fstream! What's up with that?!? Paul

      T Offline
      T Offline
      Tim Smith
      wrote on last edited by
      #2

      Sounds like VC6. hehehe That version of Dinkware's STL port is known to not want to build at warning level 4. Hopefully the version included in VC7 is better. Tim Smith "Programmers are always surrounded by complexity; we can not avoid it... If our basic tool, the language in which we design and code our programs, is also complicated, the language itself becomes part of the problem rather that part of the solution." Hoare - 1980 ACM Turing Award Lecture

      1 Reply Last reply
      0
      • P Paul Oss

        I just (for the heck of it) compiled a project I've been working on for some time on warning 4. I always leave the default of warning 3. My project does produce some warnings because of a few mixes of BOOL and bool types... anyway... so there I am, minding my own business, compiling at level 4, and I get something like 311 warnings. 308 of them were in Microsoft's standard built in header and source files- like fstream! What's up with that?!? Paul

        S Offline
        S Offline
        Simon W 0
        wrote on last edited by
        #3

        You can use follow method to avoid some warning: int a; #pragma warning( disable : 4705 )//stop warn 4705 void func() { a; } #pragma warning( default : 4705 )//recover it I am seeking... For what? Why did you ask me for what? I don't know!

        1 Reply Last reply
        0
        • P Paul Oss

          I just (for the heck of it) compiled a project I've been working on for some time on warning 4. I always leave the default of warning 3. My project does produce some warnings because of a few mixes of BOOL and bool types... anyway... so there I am, minding my own business, compiling at level 4, and I get something like 311 warnings. 308 of them were in Microsoft's standard built in header and source files- like fstream! What's up with that?!? Paul

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          Paul Oss wrote: 308 of them were in Microsoft's standard built in header and source files- like fstream! That's STL for you. :( You can ignore all that cruft safely. --Mike-- Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm

          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