Clang-SNAPSHOT emits -Wuninitialized-const-pointer in modules/musig/tests_impl.h #1728

issue hebasto openend this issue on August 24, 2025
  1. hebasto commented at 10:36 am on August 24, 2025: member

    In the “x86_64: Linux (Debian stable) (int64, yes, yes, yes, yes, yes, clang-snapshot)” CI job:

     0make  all-am
     1make[1]: Entering directory '/home/runner/work/secp256k1/secp256k1'
     2  CC       src/bench-bench.o
     3  CC       src/libsecp256k1_la-secp256k1.lo
     4  CC       src/libsecp256k1_precomputed_la-precomputed_ecmult.lo
     5  CC       src/libsecp256k1_precomputed_la-precomputed_ecmult_gen.lo
     6  CC       src/bench_internal-bench_internal.o
     7  CC       src/bench_ecmult-bench_ecmult.o
     8  CC       src/noverify_tests-tests.o
     9In file included from src/tests.c:7447:
    10src/modules/musig/tests_impl.h:931:79: error: variable 'keypair' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
    11  931 |             CHECK(secp256k1_musig_partial_sign(CTX, &partial_sig, &secnonce, &keypair, &keyagg_cache, &session));
    12      |                                                                               ^~~~~~~
    131 error generated.
    14make[1]: *** [Makefile:1412: src/noverify_tests-tests.o] Error 1
    15make[1]: *** Waiting for unfinished jobs....
    

    The same error in other CI jobs:

  2. hebasto closed this on Aug 24, 2025

  3. hebasto commented at 11:15 am on August 24, 2025: member
    The branch in the PR description is outdated.
  4. real-or-random commented at 7:22 am on August 25, 2025: contributor
    This was #1706.

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-09-18 02:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me