Fix warning -Wimplicit-fallthrough (#2771)

This commit is contained in:
Jan Niklas Hasse 2025-04-08 11:58:03 +02:00 committed by GitHub
parent 6e5da45fa3
commit 8bd5cf2e80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -208,11 +208,11 @@ void spDebug_printTimeline(spTimeline *timeline) {
case SP_TIMELINE_SEQUENCE: { case SP_TIMELINE_SEQUENCE: {
spSequenceTimeline *t = (spSequenceTimeline *) timeline; spSequenceTimeline *t = (spSequenceTimeline *) timeline;
_spDebug_printTimelineBase(&t->super); _spDebug_printTimelineBase(&t->super);
} } // fallthrough
case SP_TIMELINE_INHERIT: { case SP_TIMELINE_INHERIT: {
spInheritTimeline *t = (spInheritTimeline *) timeline; spInheritTimeline *t = (spInheritTimeline *) timeline;
_spDebug_printTimelineBase(&t->super); _spDebug_printTimelineBase(&t->super);
} } // fallthrough
default: { default: {
_spDebug_printTimelineBase(timeline); _spDebug_printTimelineBase(timeline);
} }

View File

@ -98,7 +98,7 @@ void spIkConstraint_apply1(spBone *bone, float targetX, float targetY, int /*boo
pb = -sc * s * bone->skeleton->scaleX; pb = -sc * s * bone->skeleton->scaleX;
pd = sa * s * bone->skeleton->scaleY; pd = sa * s * bone->skeleton->scaleY;
rotationIK += ATAN2(sc, sa) * RAD_DEG; rotationIK += ATAN2(sc, sa) * RAD_DEG;
} } // fallthrough
default: { default: {
float x = targetX - p->worldX, y = targetY - p->worldY; float x = targetX - p->worldX, y = targetY - p->worldY;
float d = pa * pd - pb * pc; float d = pa * pd - pb * pc;