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

GCC 12 gives -Wimplicit-fallthrough because of -Wextra #39

Open
mjakubicek opened this issue Oct 3, 2022 · 0 comments
Open

GCC 12 gives -Wimplicit-fallthrough because of -Wextra #39

mjakubicek opened this issue Oct 3, 2022 · 0 comments

Comments

@mjakubicek
Copy link

Either you should remove -Wextra or add the __attribute__ ((fallthrough)) to suppress it.

murmurhash3.c: In function ‘hash’:
murmurhash3.c:62:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
   62 |         case 3: k1 ^= tail[2] << 16;
      |                 ~~~^~~~~~~~~~~~~~~~
murmurhash3.c:63:9: note: here
   63 |         case 2: k1 ^= tail[1] << 8;
      |         ^~~~
murmurhash3.c:63:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
   63 |         case 2: k1 ^= tail[1] << 8;
      |                 ~~~^~~~~~~~~~~~~~~
murmurhash3.c:64:9: note: here
   64 |         case 1: k1 ^= tail[0];
      |         ^~~~
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

No branches or pull requests

1 participant