diff --git a/spine-c/.cproject b/spine-c/.cproject
index 3b9555901..74aa1cb8c 100644
--- a/spine-c/.cproject
+++ b/spine-c/.cproject
@@ -37,17 +37,22 @@
+
+
+
-
+
-
+
+
+
diff --git a/spine-c/include/spine/extension.h b/spine-c/include/spine/extension.h
index 62027b167..af621f64d 100644
--- a/spine-c/include/spine/extension.h
+++ b/spine-c/include/spine/extension.h
@@ -77,6 +77,8 @@
#define ACOS(A) (float)acos(A)
#endif
+#define UNUSED(x) (void)(x)
+
#include
#include
#include
diff --git a/spine-c/src/spine/Animation.c b/spine-c/src/spine/Animation.c
index ad5ee3b2e..bb57de71b 100644
--- a/spine-c/src/spine/Animation.c
+++ b/spine-c/src/spine/Animation.c
@@ -294,6 +294,10 @@ void _spRotateTimeline_apply (const spTimeline* timeline, spSkeleton* skeleton,
while (amount < -180)
amount += 360;
bone->rotation += amount * alpha;
+
+ UNUSED(lastTime);
+ UNUSED(firedEvents);
+ UNUSED(eventsCount);
}
spRotateTimeline* spRotateTimeline_create (int framesCount) {
@@ -342,6 +346,10 @@ void _spTranslateTimeline_apply (const spTimeline* timeline, spSkeleton* skeleto
* alpha;
bone->y += (bone->data->y + prevFrameY + (self->frames[frameIndex + TRANSLATE_FRAME_Y] - prevFrameY) * percent - bone->y)
* alpha;
+
+ UNUSED(lastTime);
+ UNUSED(firedEvents);
+ UNUSED(eventsCount);
}
spTranslateTimeline* spTranslateTimeline_create (int framesCount) {
@@ -386,6 +394,10 @@ void _spScaleTimeline_apply (const spTimeline* timeline, spSkeleton* skeleton, f
- bone->scaleX) * alpha;
bone->scaleY += (bone->data->scaleY * (prevFrameY + (self->frames[frameIndex + TRANSLATE_FRAME_Y] - prevFrameY) * percent)
- bone->scaleY) * alpha;
+
+ UNUSED(lastTime);
+ UNUSED(firedEvents);
+ UNUSED(eventsCount);
}
spScaleTimeline* spScaleTimeline_create (int framesCount) {
@@ -449,6 +461,10 @@ void _spColorTimeline_apply (const spTimeline* timeline, spSkeleton* skeleton, f
slot->b = b;
slot->a = a;
}
+
+ UNUSED(lastTime);
+ UNUSED(firedEvents);
+ UNUSED(eventsCount);
}
spColorTimeline* spColorTimeline_create (int framesCount) {
@@ -485,6 +501,10 @@ void _spAttachmentTimeline_apply (const spTimeline* timeline, spSkeleton* skelet
attachmentName = self->attachmentNames[frameIndex];
spSlot_setAttachment(skeleton->slots[self->slotIndex],
attachmentName ? spSkeleton_getAttachmentForSlotIndex(skeleton, self->slotIndex, attachmentName) : 0);
+
+ UNUSED(firedEvents);
+ UNUSED(eventsCount);
+ UNUSED(alpha);
}
void _spAttachmentTimeline_dispose (spTimeline* timeline) {
@@ -608,6 +628,11 @@ void _spDrawOrderTimeline_apply (const spTimeline* timeline, spSkeleton* skeleto
for (i = 0; i < self->slotsCount; ++i)
skeleton->drawOrder[i] = skeleton->slots[drawOrderToSetupIndex[i]];
}
+
+ UNUSED(lastTime);
+ UNUSED(firedEvents);
+ UNUSED(eventsCount);
+ UNUSED(alpha);
}
void _spDrawOrderTimeline_dispose (spTimeline* timeline) {
@@ -704,6 +729,10 @@ void _spFFDTimeline_apply (const spTimeline* timeline, spSkeleton* skeleton, flo
slot->attachmentVertices[i] = prev + (nextVertices[i] - prev) * percent;
}
}
+
+ UNUSED(lastTime);
+ UNUSED(firedEvents);
+ UNUSED(eventsCount);
}
void _spFFDTimeline_dispose (spTimeline* timeline) {
@@ -776,6 +805,10 @@ void _spIkConstraintTimeline_apply (const spTimeline* timeline, spSkeleton* skel
mix = prevFrameMix + (self->frames[frameIndex + IKCONSTRAINT_FRAME_MIX] - prevFrameMix) * percent;
ikConstraint->mix += (mix - ikConstraint->mix) * alpha;
ikConstraint->bendDirection = (int)self->frames[frameIndex + IKCONSTRAINT_PREV_FRAME_BEND_DIRECTION];
+
+ UNUSED(lastTime);
+ UNUSED(firedEvents);
+ UNUSED(eventsCount);
}
spIkConstraintTimeline* spIkConstraintTimeline_create (int framesCount) {
diff --git a/spine-c/src/spine/AtlasAttachmentLoader.c b/spine-c/src/spine/AtlasAttachmentLoader.c
index 4d5a81caf..8e351e468 100644
--- a/spine-c/src/spine/AtlasAttachmentLoader.c
+++ b/spine-c/src/spine/AtlasAttachmentLoader.c
@@ -104,6 +104,8 @@ spAttachment* _spAtlasAttachmentLoader_createAttachment (spAttachmentLoader* loa
_spAttachmentLoader_setUnknownTypeError(loader, type);
return 0;
}
+
+ UNUSED(skin);
}
spAtlasAttachmentLoader* spAtlasAttachmentLoader_create (spAtlas* atlas) {