build: fix usage of `-Wloop-analysis` #26958

pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:fix_build_loop_analysis changing 1 files +1 −1
  1. fanquake commented at 5:59 PM on January 23, 2023: member

    Looks like I introduced this in 5ced92528362d8a9ea3c15a9752f3dc184108060.

  2. build: fix usage of -Wloop-analysis
    Looks like I introduced this in
    5ced92528362d8a9ea3c15a9752f3dc184108060.
    166e0c057c
  3. fanquake added the label Build system on Jan 23, 2023
  4. DrahtBot commented at 5:59 PM on January 23, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK hebasto, jarolrod

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #25972 (build: no-longer disable WARN_CXXFLAGS when CXXFLAGS is set by fanquake)

    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.

  5. hebasto commented at 6:16 PM on January 23, 2023: member

    Looks like I introduced this in 5ced925.

    ... and I overlooked it during reviewing, and no complains from clang as both options are valid.

  6. hebasto approved
  7. hebasto commented at 6:24 PM on January 23, 2023: member

    ACK 166e0c057c91f7c8666fe8aa43f699956a2b4b8b, tested on Ubuntu 22.04:

    • master branch (a62231bca629e945349255a1d331dd5c7a86ddd1):
    $ ./autogen.sh
    $ ./configure CC=clang CXX=clang++  2>&1 | grep loop-analysis
    checking whether C++ compiler accepts -Wloop-analysis... yes
      CXXFLAGS        =   -fdebug-prefix-map=$(abs_top_srcdir)=.  -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection  -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wrange-loop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wunreachable-code-loop-increment -Wimplicit-fallthrough  -Wno-unused-parameter -Wno-self-assign -Wno-deprecated-copy    -g -O2
    
    • this PR:
    $ ./autogen.sh
    $ ./configure CC=clang CXX=clang++  2>&1 | grep loop-analysis
    checking whether C++ compiler accepts -Wloop-analysis... yes
      CXXFLAGS        =   -fdebug-prefix-map=$(abs_top_srcdir)=.  -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection  -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wloop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wunreachable-code-loop-increment -Wimplicit-fallthrough  -Wno-unused-parameter -Wno-self-assign -Wno-deprecated-copy    -g -O2
    
  8. ajtowns commented at 11:25 PM on January 23, 2023: contributor

    Original PR #23473 ; "boring" huh...

  9. jarolrod approved
  10. jarolrod commented at 12:09 AM on January 24, 2023: member

    ACK 166e0c057c91f7c8666fe8aa43f699956a2b4b8b

    Tested on macOS with the following commands

    master

    $ ./configure CC=clang CXX=clang++  2>&1 | grep loop-analysis
    checking whether C++ compiler accepts -Wloop-analysis... yes
      CXXFLAGS        =    -Wstack-protector -fstack-protector-all  -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wrange-loop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wunreachable-code-loop-increment -Wimplicit-fallthrough  -Wno-unused-parameter -Wno-self-assign -Wno-deprecated-copy    -g -O2
    

    pr

    $ ./configure CC=clang CXX=clang++  2>&1 | grep loop-analysis
    checking whether C++ compiler accepts -Wloop-analysis... yes
      CXXFLAGS        =    -Wstack-protector -fstack-protector-all  -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wloop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wunreachable-code-loop-increment -Wimplicit-fallthrough  -Wno-unused-parameter -Wno-self-assign -Wno-deprecated-copy    -g -O2
    
  11. maflcko merged this on Jan 24, 2023
  12. maflcko closed this on Jan 24, 2023

  13. fanquake deleted the branch on Jan 24, 2023
  14. sidhujag referenced this in commit 73edbb90ab on Jan 24, 2023
  15. bitcoin locked this on Jan 24, 2024

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-04-26 06:13 UTC

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