Skip to content

Tidy error on Bitcoin Core CI #124

@Sjors

Description

@Sjors
[22:21:15.870] /ci_container_base/src/ipc/process.cpp:75:17: error: use starts_with instead of compare() == 0 [modernize-use-starts-ends-with,-warnings-as-errors]
[22:21:15.870]    75 |     if (address.compare(0, 4, "unix") == 0 && (address.size() == 4 || address[4] == ':')) {
[22:21:15.870]       |                 ^~~~~~~~~~~~~       ~~~~~~
[22:21:15.870]       |                 starts_with(        )
[22:21:15.870] 850 warnings generated.
[22:21:15.870] 
[22:21:15.870] ^^^ ⚠️ Failure generated from clang-tidy

https://github.com/bitcoin/bitcoin/pull/30975/checks?check_run_id=34105951022

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions