Skip to content

build: silence third-party overlaybd compile warnings - #142

Merged
Pangjiping merged 1 commit into
masterfrom
silence-overlaybd-warnings
Oct 22, 2026
Merged

Pangjiping merged 1 commit into
masterfrom
silence-overlaybd-warnings

Conversation

@Pangjiping

Copy link
Copy Markdown
Collaborator

Summary

The container-only overlaybd build (build/oci/build-overlaybd.sh, consumed by the oci-tools image used by the Builder and Fastlet) emits ~200 default g++ warnings from the pinned containerd/overlaybd source on every image build:

  • -Wreorder (33), -Wpessimizing-move (22), -Wdeprecated-declarations (17), plus assorted -Wunused-*/-Wstringop-* etc.

All of them come from the third-party source, are non-actionable here, and bury real errors in CI logs.

Change

Pass -DCMAKE_CXX_FLAGS="-w" on the cmake configure line for this container-only build, suppressing the third-party warning noise. Real errors still fail the build; nothing else changes (same pinned revision, same targets, same artifacts).

Test plan

  • oci-tools image build completes with a clean log (no C++ warnings from /src/overlaybd)
  • Produced overlaybd tools unchanged (overlaybd-import-raw, overlaybd-ublkd, overlaybd-create, overlaybd-apply, overlaybd-commit, overlaybd-resize)

The container-only overlaybd build emits ~200 default g++ warnings
(-Wreorder, -Wpessimizing-move, -Wdeprecated-declarations, ...) from
the pinned containerd/overlaybd source on every oci-tools image build,
burying real errors in CI logs. Pass -w via CMAKE_CXX_FLAGS for this
build; it only affects the C++ tool compilation inside the image.
@Pangjiping
Pangjiping merged commit dafdbdd into master Oct 22, 2026
5 checks passed
@Pangjiping
Pangjiping deleted the silence-overlaybd-warnings branch October 22, 2026 13:29
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