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

New warnings: ./Modules/blake2module.c:314:18: warning: unused variable 'st' [-Wunused-variable] #123189

Closed
Eclips4 opened this issue Aug 21, 2024 · 0 comments
Assignees
Labels
3.14 new features, bugs and security fixes type-bug An unexpected behavior, bug, or error

Comments

@Eclips4
Copy link
Member

Eclips4 commented Aug 21, 2024

Bug report

Bug description:

admin@Admins-MacBook-Air ~/P/cpython (main)> make -j
gcc  -I./Modules/_hacl/include -fno-strict-overflow -Wsign-compare -g -Og -Wall    -fstack-protector-strong -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include     -c ./Modules/blake2module.c -o Modules/blake2module.o
./Modules/blake2module.c:314:18: warning: unused variable 'st' [-Wunused-variable]
    Blake2State* st = blake2_get_state_from_type(type);
                 ^
./Modules/blake2module.c:107:20: warning: unused function 'has_simd128' [-Wunused-function]
static inline bool has_simd128(cpu_flags *flags) {
                   ^
./Modules/blake2module.c:113:20: warning: unused function 'has_simd256' [-Wunused-function]
static inline bool has_simd256(cpu_flags *flags) {
                   ^
3 warnings generated.
gcc -bundle -undefined dynamic_lookup      Modules/blake2module.o  Modules/_hacl/libHacl_Hash_Blake2.a  -o Modules/_blake2.cpython-314d-darwin.so
The necessary bits to build these optional modules were not found:
_gdbm
To find the necessary bits, look in configure.ac and config.log.

Checked 112 modules (34 built-in, 77 shared, 0 n/a on macosx-14.5-arm64, 0 disabled, 1 missing, 0 failed on import)

I have a PR ready to fix that.

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

@Eclips4 Eclips4 added type-bug An unexpected behavior, bug, or error 3.14 new features, bugs and security fixes labels Aug 21, 2024
@Eclips4 Eclips4 self-assigned this Aug 21, 2024
sobolevn pushed a commit that referenced this issue Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.14 new features, bugs and security fixes type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants