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

Cython warnings during compilation #186

Open
GiacomoPope opened this issue Aug 14, 2024 · 1 comment
Open

Cython warnings during compilation #186

GiacomoPope opened this issue Aug 14, 2024 · 1 comment

Comments

@GiacomoPope
Copy link
Contributor

When compiling I get a bunch of errors like this

src/flint/types/fq_default.c:26171:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
src/flint/types/fq_default.c:566:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                 ^
src/flint/types/fq_default.c:26182:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
src/flint/types/fq_default.c:566:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                 ^
src/flint/types/fq_default.c:26387:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
src/flint/types/fq_default.c:566:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                 ^
src/flint/types/fq_default.c:26398:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
src/flint/types/fq_default.c:566:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                 ^
src/flint/types/fq_default.c:26848:13: warning: code will never be executed [-Wunreachable-code]
            goto bad;

is this something we can fix? I don't know if this is just on my machine or a generic issue

@oscarbenjamin
Copy link
Collaborator

I only see this one on Linux with gcc:

src/flint/types/fq_default.c:26848:13: warning: code will never be executed [-Wunreachable-code]
            goto bad;

I think it is new since a recent version of Cython.

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

No branches or pull requests

2 participants