Skip to content

Commit

Permalink
fix compilation warning for unused parameters on valuenode methods (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolforg committed Nov 21, 2021
1 parent e932a39 commit 957bc26
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions synfig-core/src/synfig/valuenodes/valuenode_bone.cpp
Expand Up @@ -1007,7 +1007,7 @@ ValueNode_Bone_Root::~ValueNode_Bone_Root()
}

ValueBase
ValueNode_Bone_Root::operator()(Time t)const
ValueNode_Bone_Root::operator()(Time /*t*/)const
{
Bone ret;
ret.set_name (get_local_name());
Expand All @@ -1032,15 +1032,15 @@ ValueNode_Bone_Root::set_root_canvas(etl::loose_handle<Canvas> canvas)
}

ValueNode_Bone*
ValueNode_Bone_Root::create(const ValueBase& x, etl::loose_handle<Canvas>)
ValueNode_Bone_Root::create(const ValueBase& /*x*/, etl::loose_handle<Canvas>)
{
return get_root_bone().get();
}



String
ValueNode_Bone_Root::get_bone_name(Time t)const
ValueNode_Bone_Root::get_bone_name(Time /*t*/)const
{
return get_local_name();
}
Expand All @@ -1059,13 +1059,13 @@ ValueNode_Bone_Root::create_new()const
}

Matrix
ValueNode_Bone_Root::get_animated_matrix(Time t, Point child_origin)const
ValueNode_Bone_Root::get_animated_matrix(Time /*t*/, Point child_origin)const
{
return Matrix().set_translate(child_origin);
}

bool
ValueNode_Bone_Root::check_type(Type &type)
ValueNode_Bone_Root::check_type(Type &/*type*/)
{
return false;
}
Expand Down
Expand Up @@ -95,7 +95,7 @@ ValueNode_BoneInfluence::ValueNode_BoneInfluence(const ValueNode::Handle &x, Can
}

ValueNode_BoneInfluence*
ValueNode_BoneInfluence::create(const ValueBase& x, Canvas::LooseHandle canvas, etl::loose_handle<Canvas>)
ValueNode_BoneInfluence::create(const ValueBase& x, Canvas::LooseHandle canvas)
{
if (x.get_type() == type_bline_point)
return new ValueNode_BoneInfluence(ValueNode_Composite::create(x, canvas), canvas);
Expand Down
Expand Up @@ -54,7 +54,7 @@ class ValueNode_BoneInfluence : public LinkableValueNode
typedef etl::handle<ValueNode_BoneInfluence> Handle;
typedef etl::handle<const ValueNode_BoneInfluence> ConstHandle;

static ValueNode_BoneInfluence* create(const ValueBase& x, etl::loose_handle<Canvas>, etl::loose_handle<Canvas> canvas=nullptr);
static ValueNode_BoneInfluence* create(const ValueBase& x, etl::loose_handle<Canvas> canvas);
virtual ~ValueNode_BoneInfluence();

virtual ValueBase operator()(Time t) const override;
Expand Down
Expand Up @@ -91,7 +91,7 @@ ValueNode_BoneWeightPair::create_new()const
}

ValueNode_BoneWeightPair*
ValueNode_BoneWeightPair::create(const ValueBase& x, Canvas::LooseHandle canvas, etl::loose_handle<Canvas>)
ValueNode_BoneWeightPair::create(const ValueBase& x, Canvas::LooseHandle canvas)
{
return new ValueNode_BoneWeightPair(x, canvas);
}
Expand Down
Expand Up @@ -51,7 +51,7 @@ class ValueNode_BoneWeightPair : public LinkableValueNode
typedef etl::handle<ValueNode_BoneWeightPair> Handle;
typedef etl::handle<const ValueNode_BoneWeightPair> ConstHandle;

static ValueNode_BoneWeightPair* create(const ValueBase& x, etl::loose_handle<Canvas>, etl::loose_handle<Canvas> canvas=nullptr);
static ValueNode_BoneWeightPair* create(const ValueBase& x, etl::loose_handle<Canvas> canvas);
virtual ~ValueNode_BoneWeightPair();

virtual ValueBase operator()(Time t) const override;
Expand Down
4 changes: 2 additions & 2 deletions synfig-core/src/synfig/valuenodes/valuenode_duplicate.cpp
Expand Up @@ -161,7 +161,7 @@ ValueNode_Duplicate::count_steps(Time t)const
}

ValueBase
ValueNode_Duplicate::operator()(Time t)const
ValueNode_Duplicate::operator()(Time /*t*/)const
{
if (getenv("SYNFIG_DEBUG_VALUENODE_OPERATORS"))
printf("%s:%d operator()\n", __FILE__, __LINE__);
Expand All @@ -172,7 +172,7 @@ ValueNode_Duplicate::operator()(Time t)const


bool
ValueNode_Duplicate::check_type(Type &type)
ValueNode_Duplicate::check_type(Type &/*type*/)
{
// never offer this as a choice. it's used automatically by the 'Duplicate' layer.
return false;
Expand Down
2 changes: 1 addition & 1 deletion synfig-core/src/synfig/valuenodes/valuenode_timeloop.cpp
Expand Up @@ -187,7 +187,7 @@ ValueNode_TimeLoop::get_children_vocab_vfunc()const
return ret;
}

LinkableValueNode::InvertibleStatus ValueNode_TimeLoop::is_invertible(const Time& t, const ValueBase& target_value, int* link_index) const
LinkableValueNode::InvertibleStatus ValueNode_TimeLoop::is_invertible(const Time& /*t*/, const ValueBase& target_value, int* link_index) const
{
if (target_value.get_type() != get_link("link")->get_type())
return INVERSE_ERROR_BAD_TYPE;
Expand Down

0 comments on commit 957bc26

Please sign in to comment.