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