Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented Oct 20, 2023

The ENABLE_TRACING macro is expected to be defined in the config/bitcoin-config.h header.

Therefore, the current code is error-prone as it depends on whether the config/bitcoin-config.h header was included before or not.

This bug was noticed while working on CMake stuff.

@DrahtBot
Copy link
Contributor

DrahtBot commented Oct 20, 2023

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

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK fanquake

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

@maflcko maflcko added this to the 26.0 milestone Oct 20, 2023
@maflcko
Copy link
Member

maflcko commented Oct 20, 2023

Missing build: prefix in title?

The `ENABLE_TRACING` macro is expected to be defined in the
`config/bitcoin-config.h` header.

Therefore, the current code is error-prone as it depends on whether the
`config/bitcoin-config.h` header was included before or not.
@hebasto hebasto changed the title Include config/bitcoin-config.h explicitly in util/trace.h build: Include config/bitcoin-config.h explicitly in util/trace.h Oct 20, 2023
@hebasto
Copy link
Member Author

hebasto commented Oct 20, 2023

Missing build: prefix in title?

Thanks! Added.

Copy link
Member

@fanquake fanquake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 6bdff42

@fanquake fanquake merged commit 0046f3d into bitcoin:master Oct 23, 2023
@hebasto hebasto deleted the 231020-trace branch October 23, 2023 10:35
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Oct 28, 2023
The `ENABLE_TRACING` macro is expected to be defined in the
`config/bitcoin-config.h` header.

Therefore, the current code is error-prone as it depends on whether the
`config/bitcoin-config.h` header was included before or not.

Github-Pull: bitcoin#28693
Rebased-From: 6bdff42
Frank-GER pushed a commit to syscoin/syscoin that referenced this pull request Nov 28, 2023
…tly in `util/trace.h`

6bdff42 build: Include `config/bitcoin-config.h` explicitly in `util/trace.h` (Hennadii Stepanov)

Pull request description:

  The `ENABLE_TRACING` macro is expected to be defined in the `config/bitcoin-config.h` header.

  Therefore, the current code is error-prone as it depends on whether the `config/bitcoin-config.h` header was included before or not.

  This bug was noticed while working on CMake [stuff](hebasto#37).

ACKs for top commit:
  fanquake:
    ACK 6bdff42

Tree-SHA512: 22c4fdeb51628814050eb99a83db4268a4f3106207eeef918a07214bbc52f2b22490f6b05fcb96216f147afa4197c51102503738131e2583e750b6d195747a49
@bitcoin bitcoin locked and limited conversation to collaborators Oct 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants