Skip to content

build: silence benign MSVC C4251/C4275 dll-interface warnings#768

Open
abnobdoss wants to merge 1 commit into
apache:mainfrom
abnobdoss:build/silence-msvc-warnings
Open

build: silence benign MSVC C4251/C4275 dll-interface warnings#768
abnobdoss wants to merge 1 commit into
apache:mainfrom
abnobdoss:build/silence-msvc-warnings

Conversation

@abnobdoss

Copy link
Copy Markdown
Contributor

What

Add /wd4251 and /wd4275 in meson.build, applied only where the compiler accepts them.

Why

The MSVC build prints tens of thousands of lines of C4251/C4275 warnings about exported classes (like TableProperties and ConfigBase/Entry) that hold standard-library members. These are harmless when everything is built as one DLL with one compiler, but they bury the warnings that actually matter in the Windows logs. The flags are ignored on GCC and Clang, which don't have these warnings.

For reference, the average Meson Windows build logs ~22k of these warning lines (971 unique messages), drowning the handful of real warnings in the same run:
https://github.com/apache/iceberg-cpp/actions/runs/27870777076/job/82482181520

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