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 C4100 : how to get rid of it if issued by an included header ?

warning C4100 : how to get rid of it if issued by an included header ?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestiontutorial
6 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.
  • J Offline
    J Offline
    Jerome Conus
    wrote on last edited by
    #1

    Hi ! I'm compiling my project with warnings at level 3. I didn't change any warning-behavior with #pragma. The problem is that I get many warning C4100 (unreferenced formal parameter) because of included headers. How can I get rid of these warnings for which I cannot do anything anyway ? (btw : I've seen somewhere that warning C4100 is level 4, but it occurs at level 3, that's strange ! any hint about this ?) Thanks for your help ! Jerome

    R T C 3 Replies Last reply
    0
    • J Jerome Conus

      Hi ! I'm compiling my project with warnings at level 3. I didn't change any warning-behavior with #pragma. The problem is that I get many warning C4100 (unreferenced formal parameter) because of included headers. How can I get rid of these warnings for which I cannot do anything anyway ? (btw : I've seen somewhere that warning C4100 is level 4, but it occurs at level 3, that's strange ! any hint about this ?) Thanks for your help ! Jerome

      R Offline
      R Offline
      Rinu_Raj
      wrote on last edited by
      #2

      You just want to disable th ewarning right use #pragma #pragma warning( disable: 4100 ) Is that not working ??? Rinu Raj

      1 Reply Last reply
      0
      • J Jerome Conus

        Hi ! I'm compiling my project with warnings at level 3. I didn't change any warning-behavior with #pragma. The problem is that I get many warning C4100 (unreferenced formal parameter) because of included headers. How can I get rid of these warnings for which I cannot do anything anyway ? (btw : I've seen somewhere that warning C4100 is level 4, but it occurs at level 3, that's strange ! any hint about this ?) Thanks for your help ! Jerome

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        does This[^] help ?


        TOXCCT >>> GEII power

        [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

        1 Reply Last reply
        0
        • J Jerome Conus

          Hi ! I'm compiling my project with warnings at level 3. I didn't change any warning-behavior with #pragma. The problem is that I get many warning C4100 (unreferenced formal parameter) because of included headers. How can I get rid of these warnings for which I cannot do anything anyway ? (btw : I've seen somewhere that warning C4100 is level 4, but it occurs at level 3, that's strange ! any hint about this ?) Thanks for your help ! Jerome

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          Which IDE are you using ? IF you use VC2005, there is an option in project properties that lets you disable specific warnings. Go in 'C/C++' -> 'Advanced' -> 'Disable specific warnings'. Put the warning number (without the 'C'). And don't know if this feature exists in VC6 (I already searched for it but couldn't find it). I don't know for VC2003 (never used it). using pragma won't help I suppose because you probably don't want to modify these header files. And they probably don't include stdafx.h.


          Cédric Moonen Software developer
          Charting control [Updated - v1.1]

          T 1 Reply Last reply
          0
          • C Cedric Moonen

            Which IDE are you using ? IF you use VC2005, there is an option in project properties that lets you disable specific warnings. Go in 'C/C++' -> 'Advanced' -> 'Disable specific warnings'. Put the warning number (without the 'C'). And don't know if this feature exists in VC6 (I already searched for it but couldn't find it). I don't know for VC2003 (never used it). using pragma won't help I suppose because you probably don't want to modify these header files. And they probably don't include stdafx.h.


            Cédric Moonen Software developer
            Charting control [Updated - v1.1]

            T Offline
            T Offline
            toxcct
            wrote on last edited by
            #5

            Cedric Moonen wrote:

            using pragma won't help I suppose because you probably don't want to modify these header files. And they probably don't include stdafx.h

            but he can always do this :

            #pragma warning(disable:4100)
            #include "the_header.h"
            #pragma warning(default:4100)


            TOXCCT >>> GEII power

            [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

            C 1 Reply Last reply
            0
            • T toxcct

              Cedric Moonen wrote:

              using pragma won't help I suppose because you probably don't want to modify these header files. And they probably don't include stdafx.h

              but he can always do this :

              #pragma warning(disable:4100)
              #include "the_header.h"
              #pragma warning(default:4100)


              TOXCCT >>> GEII power

              [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              Sure. But if he needs to include that file in several places, this can be a pain...


              Cédric Moonen Software developer
              Charting control [Updated - v1.1]

              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