Skip to content

Change comments to be recognised by -Wimplicit-fallthrough#34

Open
martinling wants to merge 1 commit intomossmann:masterfrom
martinling:fallthru
Open

Change comments to be recognised by -Wimplicit-fallthrough#34
martinling wants to merge 1 commit intomossmann:masterfrom
martinling:fallthru

Conversation

@martinling
Copy link

Fixes annoying compiler warnings such as:

../can.c: In function 'can_transmit':
../can.c:417:32: warning: this statement may fall through [-Wimplicit-fallthrough=]
  417 |                 tdhxr.data8[3] = data[7];
      |                 ~~~~~~~~~~~~~~~^~~~~~~~~
../can.c:419:9: note: here

The -Wimplicit-fallthrough warning recognises a reasonably wide selection of comments as identifying a deliberate fall through, but no break is not among them.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant