Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning -Wimplicit-fallthrough #2771

Open
wants to merge 1 commit into
base: 4.2
Choose a base branch
from

Conversation

jhasse
Copy link
Contributor

@jhasse jhasse commented Feb 28, 2025

GCC 14 on Fedora

spine-c/src/spine/Debug.c: In function ‘spDebug_printTimeline’:
spine-c/src/spine/Debug.c:210:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
  210 |                         _spDebug_printTimelineBase(&t->super);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spine-c/src/spine/Debug.c:212:17: note: here
  212 |                 case SP_TIMELINE_INHERIT: {
      |                 ^~~~
spine-c/src/spine/Debug.c:214:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
  214 |                         _spDebug_printTimelineBase(&t->super);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
spine-c/src/spine/Debug.c:216:17: note: here
  216 |                 default: {
      |                 ^~~~~~~
spine-c/src/spine/IkConstraint.c: In function ‘spIkConstraint_apply1’:
spine-c/src/spine/IkConstraint.c:100:36: warning: this statement may fall through [-Wimplicit-fallthrough=]
  100 |                         rotationIK += ATAN2(sc, sa) * RAD_DEG;
      |                                    ^~
spine-c/src/spine/IkConstraint.c:102:17: note: here
  102 |                 default: {
      |                 ^~~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant