1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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

@@ -28,10 +28,9 @@
IGESSelect_AddGroup::IGESSelect_AddGroup ()
: IGESSelect_ModelModifier (Standard_True) { }
void IGESSelect_AddGroup::Performing
(IFSelect_ContextModif& ctx,
const Handle(IGESData_IGESModel)& target,
Interface_CopyTool& TC) const
void IGESSelect_AddGroup::Performing (IFSelect_ContextModif& ctx,
const Handle(IGESData_IGESModel)& target,
Interface_CopyTool& /*TC*/) const
{
if (ctx.IsForAll()) {
ctx.CCheck(0)->AddFail ("Add Group : Selection required not defined");

View File

@@ -133,11 +133,11 @@ static Handle(Interface_TypedValue) NewDefList(const Standard_CString name)
{ return TCollection_AsciiString ("IGES Header"); }
Standard_Boolean IGESSelect_EditDirPart::Recognize
(const Handle(IFSelect_EditForm)& form) const
(const Handle(IFSelect_EditForm)& /*form*/) const
{ return Standard_True; } // ??
Handle(TCollection_HAsciiString) IGESSelect_EditDirPart::StringValue
(const Handle(IFSelect_EditForm)& form, const Standard_Integer num) const
(const Handle(IFSelect_EditForm)& /*form*/, const Standard_Integer num) const
{
// Default Values
return TypedValue(num)->HStringValue();
@@ -222,7 +222,7 @@ Handle(TCollection_HAsciiString) DefListName (const IGESData_DefList& deflist)
(const Handle(IFSelect_EditForm)& form,
const Standard_Integer num,
const Handle(TCollection_HAsciiString)& val,
const Standard_Boolean enforce) const
const Standard_Boolean /*enforce*/) const
{
Handle(TCollection_HAsciiString) nulstr;
Handle(IGESData_IGESModel) modl =

View File

@@ -190,11 +190,11 @@ static Standard_Boolean IsTimeStamp
{ return TCollection_AsciiString ("IGES Header"); }
Standard_Boolean IGESSelect_EditHeader::Recognize
(const Handle(IFSelect_EditForm)& form) const
(const Handle(IFSelect_EditForm)& /*form*/) const
{ return Standard_True; } // ??
Handle(TCollection_HAsciiString) IGESSelect_EditHeader::StringValue
(const Handle(IFSelect_EditForm)& form, const Standard_Integer num) const
(const Handle(IFSelect_EditForm)& /*form*/, const Standard_Integer num) const
{
// Default Values
return TypedValue(num)->HStringValue();
@@ -202,7 +202,7 @@ static Standard_Boolean IsTimeStamp
Standard_Boolean IGESSelect_EditHeader::Load
(const Handle(IFSelect_EditForm)& form,
const Handle(Standard_Transient)& ent,
const Handle(Standard_Transient)& /*ent*/,
const Handle(Interface_InterfaceModel)& model) const
{
Handle(IGESData_IGESModel) modl =
@@ -300,7 +300,7 @@ static Standard_Boolean IsTimeStamp
Standard_Boolean IGESSelect_EditHeader::Apply
(const Handle(IFSelect_EditForm)& form,
const Handle(Standard_Transient)& ent,
const Handle(Standard_Transient)& /*ent*/,
const Handle(Interface_InterfaceModel)& model) const
{
Handle(IGESData_IGESModel) modl =

View File

@@ -74,7 +74,7 @@ IGESSelect_FloatFormat::IGESSelect_FloatFormat ()
void IGESSelect_FloatFormat::Perform
(IFSelect_ContextWrite& ctx,
(IFSelect_ContextWrite& /*ctx*/,
IGESData_IGESWriter& writer) const
{
writer.FloatWriter().SetFormat (themainform.ToCString());

View File

@@ -30,7 +30,7 @@ static char voidlabel [] = "";
Standard_CString IGESSelect_IGESName::Value
(const Handle(Standard_Transient)& ent,
const Handle(Interface_InterfaceModel)& model) const
const Handle(Interface_InterfaceModel)& /*model*/) const
{
DeclareAndCast(IGESData_IGESEntity,igesent,ent);
if (igesent.IsNull()) return &falsetype[0];

View File

@@ -43,7 +43,7 @@ static char typeval [30]; // une seule reponse a la fois ...
Standard_CString IGESSelect_IGESTypeForm::Value
(const Handle(Standard_Transient)& ent,
const Handle(Interface_InterfaceModel)& model) const
const Handle(Interface_InterfaceModel)& /*model*/) const
{
DeclareAndCast(IGESData_IGESEntity,igesent,ent);
if (igesent.IsNull()) return &falsetype[0];

View File

@@ -114,10 +114,9 @@ static Standard_Boolean Edit
}
void IGESSelect_RemoveCurves::Performing
(IFSelect_ContextModif& ctx,
const Handle(IGESData_IGESModel)& target,
Interface_CopyTool& TC) const
void IGESSelect_RemoveCurves::Performing (IFSelect_ContextModif& ctx,
const Handle(IGESData_IGESModel)& /*target*/,
Interface_CopyTool& /*TC*/) const
{
for (ctx.Start(); ctx.More(); ctx.Next()) {
if (Edit (ctx.ValueResult(),theUV) ) ctx.Trace ();

View File

@@ -40,8 +40,8 @@ IGESSelect_SelectBasicGeom::IGESSelect_SelectBasicGeom
: IFSelect_SelectExplore (-1) { thegeom = mode; }
Standard_Boolean IGESSelect_SelectBasicGeom::Explore
(const Standard_Integer level, const Handle(Standard_Transient)& ent,
const Interface_Graph& G, Interface_EntityIterator& explored) const
(const Standard_Integer /*level*/, const Handle(Standard_Transient)& ent,
const Interface_Graph& /*G*/, Interface_EntityIterator& explored) const
{
// thegeom > 0 : curves3d < 0 : surfaces == 0 : curves3d + surfaces libres

View File

@@ -33,8 +33,8 @@ IGESSelect_SelectBypassGroup::IGESSelect_SelectBypassGroup
Standard_Boolean IGESSelect_SelectBypassGroup::Explore
(const Standard_Integer level, const Handle(Standard_Transient)& ent,
const Interface_Graph& G, Interface_EntityIterator& explored) const
(const Standard_Integer /*level*/, const Handle(Standard_Transient)& ent,
const Interface_Graph& /*G*/, Interface_EntityIterator& explored) const
{
DeclareAndCast(IGESBasic_Group,gr,ent); // Group les regroupe tous
if (gr.IsNull()) return Standard_True;

View File

@@ -34,8 +34,8 @@ IGESSelect_SelectBypassSubfigure::IGESSelect_SelectBypassSubfigure
Standard_Boolean IGESSelect_SelectBypassSubfigure::Explore
(const Standard_Integer level, const Handle(Standard_Transient)& ent,
const Interface_Graph& G, Interface_EntityIterator& explored) const
(const Standard_Integer /*level*/, const Handle(Standard_Transient)& ent,
const Interface_Graph& /*G*/, Interface_EntityIterator& explored) const
{
DeclareAndCast(IGESData_IGESEntity,igesent,ent);
if (igesent.IsNull()) return Standard_False;

View File

@@ -31,8 +31,8 @@ IGESSelect_SelectFaces::IGESSelect_SelectFaces ()
Standard_Boolean IGESSelect_SelectFaces::Explore
(const Standard_Integer level, const Handle(Standard_Transient)& ent,
const Interface_Graph& G, Interface_EntityIterator& explored) const
(const Standard_Integer /*level*/, const Handle(Standard_Transient)& ent,
const Interface_Graph& /*G*/, Interface_EntityIterator& explored) const
{
DeclareAndCast(IGESData_IGESEntity,igesent,ent);
if (igesent.IsNull()) return Standard_False;

View File

@@ -35,8 +35,9 @@ IGESSelect_SelectLevelNumber::IGESSelect_SelectLevelNumber () { }
Standard_Boolean IGESSelect_SelectLevelNumber::Sort
(const Standard_Integer rank, const Handle(Standard_Transient)& ent,
const Handle(Interface_InterfaceModel)& model) const
(const Standard_Integer /*rank*/,
const Handle(Standard_Transient)& ent,
const Handle(Interface_InterfaceModel)& /*model*/) const
{
DeclareAndCast(IGESData_IGESEntity,igesent,ent);
if (igesent.IsNull()) return Standard_False;

View File

@@ -33,8 +33,9 @@ IGESSelect_SelectName::IGESSelect_SelectName () { }
Standard_Boolean IGESSelect_SelectName::Sort
(const Standard_Integer rank, const Handle(Standard_Transient)& ent,
const Handle(Interface_InterfaceModel)& model) const
(const Standard_Integer /*rank*/,
const Handle(Standard_Transient)& ent,
const Handle(Interface_InterfaceModel)& /*model*/) const
{
DeclareAndCast(IGESData_IGESEntity,igesent,ent);
if (igesent.IsNull()) return Standard_False;

View File

@@ -37,7 +37,7 @@ IGESSelect_SelectPCurves::IGESSelect_SelectPCurves
Standard_Boolean IGESSelect_SelectPCurves::Explore
(const Standard_Integer level, const Handle(Standard_Transient)& ent,
const Interface_Graph& G, Interface_EntityIterator& explored) const
const Interface_Graph& /*G*/, Interface_EntityIterator& explored) const
{
DeclareAndCast(IGESData_IGESEntity,igesent,ent);
if (igesent.IsNull()) return Standard_False;

View File

@@ -29,7 +29,7 @@ IGESSelect_SelectSubordinate::IGESSelect_SelectSubordinate
Standard_Boolean IGESSelect_SelectSubordinate::Sort
(const Standard_Integer, const Handle(Standard_Transient)& ent,
const Handle(Interface_InterfaceModel)& model) const
const Handle(Interface_InterfaceModel)& /*model*/) const
{
DeclareAndCast(IGESData_IGESEntity,igesent,ent);
if (igesent.IsNull()) return Standard_False;

View File

@@ -25,8 +25,9 @@ IGESSelect_SelectVisibleStatus::IGESSelect_SelectVisibleStatus () { }
Standard_Boolean IGESSelect_SelectVisibleStatus::Sort
(const Standard_Integer rank, const Handle(Standard_Transient)& ent,
const Handle(Interface_InterfaceModel)& model) const
(const Standard_Integer /*rank*/,
const Handle(Standard_Transient)& ent,
const Handle(Interface_InterfaceModel)& /*model*/) const
{
DeclareAndCast(IGESData_IGESEntity,igesent,ent);
if (igesent.IsNull()) return Standard_False;

View File

@@ -25,10 +25,9 @@ IGESSelect_SetLabel::IGESSelect_SetLabel
: IGESSelect_ModelModifier (Standard_False) ,
themode (mode) , theforce (enforce) { }
void IGESSelect_SetLabel::Performing
(IFSelect_ContextModif& ctx,
const Handle(IGESData_IGESModel)& target,
Interface_CopyTool& TC) const
void IGESSelect_SetLabel::Performing(IFSelect_ContextModif& ctx,
const Handle(IGESData_IGESModel)& target,
Interface_CopyTool& /*TC*/) const
{
Handle(TCollection_HAsciiString) lab;
for (ctx.Start(); ctx.More(); ctx.Next()) {

View File

@@ -27,7 +27,7 @@ static char theval[10];
Standard_CString IGESSelect_SignStatus::Value
(const Handle(Standard_Transient)& ent,
const Handle(Interface_InterfaceModel)& model) const
const Handle(Interface_InterfaceModel)& /*model*/) const
{
Handle(IGESData_IGESEntity) igesent = Handle(IGESData_IGESEntity)::DownCast(ent);
if (igesent.IsNull()) return "";
@@ -42,7 +42,7 @@ static char theval[10];
Standard_Boolean IGESSelect_SignStatus::Matches
(const Handle(Standard_Transient)& ent,
const Handle(Interface_InterfaceModel)& model,
const Handle(Interface_InterfaceModel)& /*model*/,
const TCollection_AsciiString& text, const Standard_Boolean exact) const
{
Handle(IGESData_IGESEntity) igesent = Handle(IGESData_IGESEntity)::DownCast(ent);

View File

@@ -24,9 +24,9 @@
IGESSelect_UpdateFileName::IGESSelect_UpdateFileName ()
: IGESSelect_ModelModifier (Standard_False) { }
void IGESSelect_UpdateFileName::Performing
(IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target,
Interface_CopyTool& TC) const
void IGESSelect_UpdateFileName::Performing (IFSelect_ContextModif& ctx,
const Handle(IGESData_IGESModel)& target,
Interface_CopyTool& /*TC*/) const
{
if (!ctx.HasFileName()) {
ctx.CCheck(0)->AddWarning("New File Name unknown, former one is kept");