1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0024057: Eliminate compiler warning C4100 in MSVC++ with warning level 4

Got rid of warning C4100: 'identifier' : unreferenced formal parameter
Got rid of compile errors
This commit is contained in:
omy
2013-07-18 13:09:32 +04:00
parent 92a4955951
commit 35e08fe886
351 changed files with 1092 additions and 991 deletions

View File

@@ -117,7 +117,7 @@ struct W32_Note { // base class to represent graphic object
#ifdef OCC5415
void operator delete (void*, W32_Allocator*) {}
private: // to protect against possible accidental usage
void operator delete (void* p) {}
void operator delete (void*) {}
#endif
};
///

View File

@@ -406,7 +406,7 @@ W32_PointNote :: W32_PointNote ( int x, int y ) {
} // end constructor
void W32_PointNote :: Play ( BOOL fDummy ) {
void W32_PointNote :: Play ( BOOL ) {
ALLOCATOR -> myHDC.SetPixel ( myX, myY, ALLOCATOR -> myPointColor );
@@ -419,7 +419,7 @@ W32_MarkerPointNote :: W32_MarkerPointNote ( int x, int y ) :
} // end constructor
void W32_MarkerPointNote :: Play ( BOOL fDummy ) {
void W32_MarkerPointNote :: Play ( BOOL ) {
ALLOCATOR -> myHDC.SetPixel ( myX, myY, ALLOCATOR -> myMarkerPointColor );
@@ -435,7 +435,7 @@ W32_LineNote :: W32_LineNote ( int x, int y, int x1, int y1 ) :
} // end constructor
void W32_LineNote :: Play ( BOOL fDummy ) {
void W32_LineNote :: Play ( BOOL ) {
EHDC* pe = &ALLOCATOR -> myHDC;
@@ -454,7 +454,7 @@ W32_PolyEllipseNote :: W32_PolyEllipseNote ( int xc, int yc, int xr, int yr ) :
} // end constructor
void W32_PolyEllipseNote :: Play ( BOOL fDummy ) {
void W32_PolyEllipseNote :: Play ( BOOL ) {
ALLOCATOR -> myHDC.Polyarc ( myX, myY, myXr, myYr );
@@ -467,7 +467,7 @@ W32_EllipseNote :: W32_EllipseNote ( int xc, int yc, int xr, int yr ) :
} // end constructor
void W32_EllipseNote :: Play ( BOOL fDummy ) {
void W32_EllipseNote :: Play ( BOOL ) {
ALLOCATOR -> myHDC.Arc ( myX, myY, myXr, myYr );
@@ -484,7 +484,7 @@ W32_ArcNote :: W32_ArcNote (
} // end constructor
void W32_ArcNote :: Play ( BOOL fDummy ) {
void W32_ArcNote :: Play ( BOOL ) {
ALLOCATOR -> myHDC.Arc ( myX, myY, myXr, myYr, mySa, myOa );
@@ -498,7 +498,7 @@ W32_PolyChordNote :: W32_PolyChordNote (
} // end constructor
void W32_PolyChordNote :: Play ( BOOL fDummy ) {
void W32_PolyChordNote :: Play ( BOOL ) {
ALLOCATOR -> myHDC.Polyarc ( myX, myY, myXr, myYr, mySa, myOa );
@@ -512,7 +512,7 @@ W32_ChordNote :: W32_ChordNote (
} // end constructor
void W32_ChordNote :: Play ( BOOL fDummy ) {
void W32_ChordNote :: Play ( BOOL ) {
ALLOCATOR -> myHDC.Arc ( myX, myY, myXr, myYr, mySa, myOa );
@@ -526,7 +526,7 @@ W32_PolySectorNote :: W32_PolySectorNote (
} // end constructor
void W32_PolySectorNote :: Play ( BOOL fDummy ) {
void W32_PolySectorNote :: Play ( BOOL ) {
ALLOCATOR -> myHDC.Polyarc ( myX, myY, myXr, myYr, mySa, myOa, FALSE );
@@ -540,7 +540,7 @@ W32_SectorNote :: W32_SectorNote (
} // end constructor
void W32_SectorNote :: Play ( BOOL fDummy ) {
void W32_SectorNote :: Play ( BOOL ) {
ALLOCATOR -> myHDC.Arc ( myX, myY, myXr, myYr, mySa, myOa, ARCF_PIE );
@@ -578,7 +578,7 @@ W32_PolyMarker1Note :: W32_PolyMarker1Note (
} // end constructor
void W32_PolyMarker1Note :: Play ( BOOL fDummy ) {
void W32_PolyMarker1Note :: Play ( BOOL ) {
if ( ALLOCATOR -> myFlags & W32F_MFILL )
@@ -604,7 +604,7 @@ W32_PolyMarker2Note :: W32_PolyMarker2Note (
} // end constructor
void W32_PolyMarker2Note :: Play ( BOOL fDummy ) {
void W32_PolyMarker2Note :: Play ( BOOL ) {
if ( ALLOCATOR -> myFlags & W32F_MFILL )
@@ -623,7 +623,7 @@ W32_PolygonNote :: W32_PolygonNote ( int aMaxPoints ) :
} // end constructor
void W32_PolygonNote :: Play ( BOOL fDummy ) {
void W32_PolygonNote :: Play ( BOOL ) {
ALLOCATOR -> myHDC.Polygon (
myPoints, mySetPoints,
@@ -650,7 +650,7 @@ W32_PolylineNote :: W32_PolylineNote ( int aMaxPoints ) :
} // end constructor
void W32_PolylineNote :: Play ( BOOL fDummy ) {
void W32_PolylineNote :: Play ( BOOL ) {
DWORD nPts;
BOOL fClose;
@@ -697,7 +697,7 @@ W32_ImageNote :: ~W32_ImageNote () {
} // end W32_ImageNote :: ~W32_ImageNote
void W32_ImageNote :: Play ( BOOL fDummy ) {
void W32_ImageNote :: Play ( BOOL ) {
int xx, yy, w, h;
HDC hdc, hdcMem;
@@ -902,7 +902,7 @@ W32_TextNote :: W32_TextNote (
} // end constructor
void W32_TextNote :: Play ( BOOL fDummy ) {
void W32_TextNote :: Play ( BOOL ) {
if ( myFlags & W32F_TUNICODE )
@@ -930,7 +930,7 @@ W32_PolyTextNote :: W32_PolyTextNote (
} // end constructor
void W32_PolyTextNote :: Play ( BOOL fDummy ) {
void W32_PolyTextNote :: Play ( BOOL ) {
BOOL fNofill = ( ALLOCATOR -> myFlags & W32F_NOFIL ? TRUE : FALSE );
BOOL fNoframe = ( ALLOCATOR -> myFlags & W32F_POUTL ? FALSE : TRUE );
@@ -962,7 +962,7 @@ W32_BeginMarkerNote :: W32_BeginMarkerNote (
} // end constructor
void W32_BeginMarkerNote :: Play ( BOOL fDummy ) {
void W32_BeginMarkerNote :: Play ( BOOL ) {
XFORM xfm;
LOGBRUSH lb = { BS_SOLID, ALLOCATOR -> myMarkerPointColor, 0 };
@@ -987,7 +987,7 @@ void W32_BeginMarkerNote :: Play ( BOOL fDummy ) {
////////////////////////////////////////////////////////////////////////////////
W32_EndMarkerNote :: W32_EndMarkerNote () {}
void W32_EndMarkerNote :: Play ( BOOL fDummy ) {
void W32_EndMarkerNote :: Play ( BOOL ) {
ALLOCATOR -> Xform ();
ALLOCATOR -> myHDC.SelectEPen ( 0xFFFFFFFF, NULL );
@@ -1161,7 +1161,7 @@ W32_MarkerAttribNote :: W32_MarkerAttribNote (
} // end constructor
void W32_MarkerAttribNote :: Play ( BOOL fDummy ) {
void W32_MarkerAttribNote :: Play ( BOOL ) {
ALLOCATOR -> myMarkerBrush.lbStyle = BS_SOLID;
ALLOCATOR -> myMarkerBrush.lbColor = ALLOCATOR -> myPolyBrush.lbColor;
@@ -1190,7 +1190,7 @@ W32_FCallNote :: W32_FCallNote (
} // end constructor
void W32_FCallNote :: Play ( BOOL fDummy ) {
void W32_FCallNote :: Play ( BOOL ) {
( *myFunc ) ( myParam );

View File

@@ -496,7 +496,7 @@ WNT_PointNote :: WNT_PointNote ( int x, int y ) :
{
} // end constructor
void WNT_PointNote :: Play ( BOOL fDummy )
void WNT_PointNote :: Play ( BOOL )
{
Xform ();
SetPixel ( ALLOCATOR -> myHDC, myTX, myTY, ALLOCATOR -> myPointColor );
@@ -517,7 +517,7 @@ WNT_MarkerPointNote :: WNT_MarkerPointNote ( int x, int y ) :
{
} // end constructor
void WNT_MarkerPointNote :: Play ( BOOL fDummy )
void WNT_MarkerPointNote :: Play ( BOOL )
{
Xform ();
SetPixel ( ALLOCATOR -> myHDC, myTX, myTY, ALLOCATOR -> myMarkerPointColor );
@@ -532,7 +532,7 @@ WNT_LineNote :: WNT_LineNote ( int x, int y, int x1, int y1 ) :
myY2 = y1;
} // end constructor
void WNT_LineNote :: Play ( BOOL fDummy )
void WNT_LineNote :: Play ( BOOL )
{
Xform ();
MoveToEx ( ALLOCATOR -> myHDC, myTX , myTY, NULL );
@@ -557,7 +557,7 @@ WNT_PolyEllipseNote :: WNT_PolyEllipseNote ( int xc, int yc, int xr, int yr ) :
myYr = yr;
} // end constructor
void WNT_PolyEllipseNote :: Play ( BOOL fDummy )
void WNT_PolyEllipseNote :: Play ( BOOL )
{
Xform ();
Ellipse ( ALLOCATOR -> myHDC, myTX - myTXr, myTY - myTYr,
@@ -580,7 +580,7 @@ WNT_EllipseNote :: WNT_EllipseNote ( int xc, int yc, int xr, int yr ) :
{
} // end constructor
void WNT_EllipseNote :: Play ( BOOL fDummy )
void WNT_EllipseNote :: Play ( BOOL )
{
Xform ();
HBRUSH hob = SelectBrush ( ALLOCATOR -> myHDC, GetStockObject (NULL_BRUSH) );
@@ -608,7 +608,7 @@ WNT_ArcNote :: WNT_ArcNote (
myEY = int ( eSinA * 2 * Radius + yc );
} // end constructor
void WNT_ArcNote :: Play ( BOOL fDummy )
void WNT_ArcNote :: Play ( BOOL )
{
Xform ();
SetArcDirection ( ALLOCATOR -> myHDC, myDirect );
@@ -636,7 +636,7 @@ WNT_PolyChordNote :: WNT_PolyChordNote (
{
} // end constructor
void WNT_PolyChordNote :: Play ( BOOL fDummy )
void WNT_PolyChordNote :: Play ( BOOL )
{
Xform ();
Chord ( ALLOCATOR -> myHDC, myTX - myTXr, myTY - myTYr,
@@ -652,7 +652,7 @@ WNT_ChordNote :: WNT_ChordNote (
{
} // end constructor
void WNT_ChordNote :: Play ( BOOL fDummy )
void WNT_ChordNote :: Play ( BOOL )
{
Xform ();
HBRUSH hob = SelectBrush ( ALLOCATOR -> myHDC, GetStockObject (NULL_BRUSH) );
@@ -670,7 +670,7 @@ WNT_PolySectorNote :: WNT_PolySectorNote (
{
} // end constructor
void WNT_PolySectorNote :: Play ( BOOL fDummy )
void WNT_PolySectorNote :: Play ( BOOL )
{
Xform ();
Pie ( ALLOCATOR -> myHDC, myTX - myTXr, myTY - myTYr,
@@ -686,7 +686,7 @@ WNT_SectorNote :: WNT_SectorNote (
{
} // end constructor
void WNT_SectorNote :: Play ( BOOL fDummy )
void WNT_SectorNote :: Play ( BOOL )
{
Xform ();
HBRUSH hob = SelectBrush ( ALLOCATOR -> myHDC, GetStockObject (NULL_BRUSH) );
@@ -732,7 +732,7 @@ WNT_PolyMarker1Note :: WNT_PolyMarker1Note (
{
} // end constructor
void WNT_PolyMarker1Note :: Play ( BOOL fDummy )
void WNT_PolyMarker1Note :: Play ( BOOL )
{
if ( ALLOCATOR -> myFlags & W32F_MFILL )
DrawPolygon ( ALLOCATOR -> myHDC, myPoints, mySetPoints, POLYF_NOCLOSEDGE );
@@ -751,7 +751,7 @@ WNT_PolyMarker2Note :: WNT_PolyMarker2Note (
{
} // end constructor
void WNT_PolyMarker2Note :: Play ( BOOL fDummy )
void WNT_PolyMarker2Note :: Play ( BOOL )
{
if ( ALLOCATOR -> myFlags & W32F_MFILL )
DrawPolygon ( ALLOCATOR -> myHDC, myPoints, mySetPoints - 1, 0 );
@@ -767,7 +767,7 @@ WNT_PolygonNote :: WNT_PolygonNote ( int aMaxPoints ) :
myTPoints = ( LPPOINT ) ALLOCATOR -> NewData (myMaxPoints * sizeof ( POINT ));
} // end constructor
void WNT_PolygonNote :: Play ( BOOL fDummy )
void WNT_PolygonNote :: Play ( BOOL )
{
Xform ();
DrawPolygon (
@@ -791,7 +791,7 @@ WNT_PolylineNote :: WNT_PolylineNote ( int aMaxPoints ) :
{
} // end constructor
void WNT_PolylineNote :: Play ( BOOL fDummy )
void WNT_PolylineNote :: Play ( BOOL )
{
Xform ();
DWORD nPts;
@@ -828,7 +828,7 @@ WNT_ImageNote :: ~WNT_ImageNote ()
} // end if
} // end WNT_ImageNote :: ~WNT_ImageNote
void WNT_ImageNote :: Play ( BOOL fDummy )
void WNT_ImageNote :: Play ( BOOL )
{
Xform ();
int xx, yy, w, h;
@@ -923,7 +923,7 @@ void WNT_TextNote :: FillText ()
PaintText ();
} // end WNT_TextNote :: FillText
void WNT_TextNote :: Play ( BOOL fDummy )
void WNT_TextNote :: Play ( BOOL )
{
Xform ();
SIZE size;
@@ -984,7 +984,7 @@ WNT_PolyTextNote :: WNT_PolyTextNote (
{
} // end constructor
void WNT_PolyTextNote :: Play ( BOOL fDummy )
void WNT_PolyTextNote :: Play ( BOOL )
{
Xform ();
SIZE size;
@@ -1042,7 +1042,7 @@ WNT_BeginMarkerNote :: WNT_BeginMarkerNote (
ALLOCATOR -> RecalcMatrix (myMatrix, myAngle - myPrevAngle, myX, myY);
} // end constructor
void WNT_BeginMarkerNote :: Play ( BOOL fDummy )
void WNT_BeginMarkerNote :: Play ( BOOL )
{
ALLOCATOR -> myPO = SelectPen (ALLOCATOR -> myHDC, ALLOCATOR -> myMarkerPen);
#ifdef PRO19042
@@ -1076,7 +1076,7 @@ WNT_EndMarkerNote :: WNT_EndMarkerNote ()
{
}
void WNT_EndMarkerNote :: Play ( BOOL fDummy )
void WNT_EndMarkerNote :: Play ( BOOL )
{
ALLOCATOR -> Xform ();
SelectPen ( ALLOCATOR -> myHDC, ALLOCATOR -> myPO );
@@ -1139,7 +1139,7 @@ void WNT_LineAttribNote :: Play ( BOOL fRealize )
// W N T _ P o l y A t t r i b N o t e //
////////////////////////////////////////////////////////////////////////////////
WNT_PolyAttribNote :: WNT_PolyAttribNote (
PLOGBRUSH plb, BOOL fDrawEdge, int aFillMode
PLOGBRUSH plb, BOOL fDrawEdge, int /*aFillMode*/
)
{
myfEdge = fDrawEdge;
@@ -1281,7 +1281,7 @@ printf(" *** Destroy:WNT_MarkerAttribNote %x/%x\n",myPen,ALLOCATOR->myMarkerPen)
#endif
} // enf WNT_MarkerAttribNote :: ~WNT_MarkerAttribNote
void WNT_MarkerAttribNote :: Play ( BOOL fRealize )
void WNT_MarkerAttribNote :: Play ( BOOL )
{
if (myFill) ALLOCATOR -> myFlags |= W32F_MFILL;
else ALLOCATOR -> myFlags &= ~W32F_MFILL;