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

[BUG] warning: unused parameter ‘type’ in __Pyx_ErrRestoreInState #5651

Closed
ThomasWaldmann opened this issue Aug 26, 2023 · 1 comment
Closed

Comments

@ThomasWaldmann
Copy link

Describe the bug

Seeing these warnings at multiple places, so guess it might be a general problem with the generated code:

building 'borg.platform.linux' extension
gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.12.0-rc.1/x64/include/python3.12 -c src/borg/platform/linux.c -o build/temp.linux-x86_64-cpython-312/src/borg/platform/linux.o -Wall -Wextra -Wpointer-arith
src/borg/platform/linux.c: In function ‘__Pyx_ErrRestoreInState’:
src/borg/platform/linux.c:13637:84: warning: unused parameter ‘type’ [-Wunused-parameter]
13637 | static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
      |                                                                          ~~~~~~~~~~^~~~

Code to reproduce the behaviour:

No response

Expected behaviour

No compiler warnings.

OS

Linux

Python version

3.12.0rc1

Cython version

3.0.1

Additional context

No response

@scoder scoder added this to the 3.0.3 milestone Aug 27, 2023
@scoder
Copy link
Contributor

scoder commented Aug 27, 2023

Thanks for the report. That's an issue in CPython 3.12+ only because the internal implementation changed there. I'll add an "unused" marker.

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