cmake: Add `-Wunused-template` to `warn_interface` #35905

pull hebasto wants to merge 2 commits into bitcoin:master from hebasto:260805-unused-templates changing 2 files +10 −3
  1. hebasto commented at 6:41 PM on August 5, 2026: member

    Clang recently enabled -Wunused-template under -Wall (see https://github.com/llvm/llvm-project/pull/208001). This change enables the diagnostic for older Clang versions as well, notably those used in the CI.

    The minisketch subtree is exempted until it includes the upstream fix from https://github.com/bitcoin-core/minisketch/pull/102.

  2. cmake: Rename `minisketch_common` -> `nowarn_minisketch_interface`
    The new name is more specific and follows the naming convention used for
    the leveldb subtree.
    48aa11612b
  3. cmake: Add `-Wunused-template` to `warn_interface`
    Clang recently enabled `-Wunused-template` under `-Wall` (see
    https://github.com/llvm/llvm-project/pull/208001). This change enables
    the diagnostic for older Clang versions as well, notably those used in
    the CI.
    
    The minisketch subtree is exempted until it includes the upstream fix
    from https://github.com/bitcoin-core/minisketch/pull/102.
    155bc910c5
  4. hebasto added the label Build system on Aug 5, 2026
  5. DrahtBot commented at 6:41 PM on August 5, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35905.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #35911 (Warn on and add missing [[noreturn]] by fanquake)
    • #31507 (build: Use clang-cl to build on Windows natively by hebasto)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  6. fanquake commented at 6:55 PM on August 5, 2026: member

    ~0 if it's already part of -Wall. We'll be using Clang 23 in the CI shortly.

  7. hebasto commented at 7:06 PM on August 5, 2026: member

    ~0 if it's already part of -Wall. We'll be using Clang 23 in the CI shortly.

    The CI will fail without either https://github.com/bitcoin-core/minisketch/pull/102 or:https://github.com/bitcoin/bitcoin/blob/155bc910c5f551cf2cba1ef907849d255f157fca/cmake/minisketch.cmake#L39-L44

  8. fanquake commented at 7:34 PM on August 5, 2026: member

    Yea. I expect we'll just update the subtree (and then not need to make, or make an revert, any other changes).


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-08-10 21:51 UTC

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