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

Actually call PyErr_Occured(), not just refer to its address #30

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

Conversation

mr-c
Copy link

@mr-c mr-c commented Nov 25, 2024

Found via this GCC 14.2.0 warning:

mariadb/mariadb_codecs.c: In function ‘mariadb_get_parameter_info’:
mariadb/mariadb_codecs.c:1105:37: warning: the address of ‘PyErr_Occurred’ will always evaluate as ‘true’ [-Waddress]
 1105 |             if (tmp == (uint64_t)-1 && PyErr_Occurred)

Found via this GCC 14.2.0 warning:

mariadb/mariadb_codecs.c: In function ‘mariadb_get_parameter_info’:
mariadb/mariadb_codecs.c:1105:37: warning: the address of ‘PyErr_Occurred’ will always evaluate as ‘true’ [-Waddress]
 1105 |             if (tmp == (uint64_t)-1 && PyErr_Occurred)
      |
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