Skip to content

Fix -Wunused-private-field when building with clang-cl on Windows#127

Open
hebasto wants to merge 1 commit intoarun11299:masterfrom
hebasto:260122-clangcl-unused
Open

Fix -Wunused-private-field when building with clang-cl on Windows#127
hebasto wants to merge 1 commit intoarun11299:masterfrom
hebasto:260122-clangcl-unused

Conversation

@hebasto
Copy link
Contributor

@hebasto hebasto commented Jan 22, 2026

Below are examples of such warnings:

> cmake -B build -T ClangCL -DSUBPROCESS_TESTS=ON
> cmake --build build
...
C:\Users\hebas\dev\cpp-subprocess\cpp-subprocess/subprocess.hpp(1190,10): warning : private field 'parent_' is not used [-Wunused-private-field] [C:\Users\hebas\dev\cpp-subprocess\build\test\test_subprocess.vcxproj]
C:\Users\hebas\dev\cpp-subprocess\cpp-subprocess/subprocess.hpp(1191,7): warning : private field 'err_wr_pipe_' is not used [-Wunused-private-field] [C:\Users\hebas\dev\cpp-subprocess\build\test\test_subprocess.vcxproj]

Ported from bitcoin/bitcoin#34385.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant