zhjwpku opened a new pull request, #1189: URL: https://github.com/apache/iceberg-cpp/pull/1189
The x86-64 CI builds for #1126 compiled the Mumbling SSE2 path with `-Werror`, but the compiler had no reason to report the unused scalar helper. Enable `-Wall` alongside the existing warnings-as-errors policy for Iceberg's static and shared C++ libraries on GCC, Clang and AppleClang. The option is private to those targets. Clean up the warnings exposed by that change. In particular, `ResidualEvaluator::Unpartitioned()` returns a derived object through a `unique_ptr<ResidualEvaluator>`, so the base destructor needs to be virtual. This changes the exported class's vtable. The remaining fixes remove unused code, preserve both inherited `Apply` overloads in cherry-pick operations, and keep metadata builder error propagation while discarding unused IDs. The first commit carries the fix from #1188 so x86-64 can build with the new policy. The second commit contains the warning policy and cleanup. **Verification** - Compiled `mumbling_bitmap.cc` with AppleClang 17 and `-Wall -Werror`. The previous source fails on x86-64 with `-Wunused-function`, and the updated source passes on both x86-64 and arm64. - Checked the generated compilation database for the local static build. All 212 Iceberg library commands have `-Wall -Werror`, and the option does not propagate to the expression and utility test targets. - `pre-commit run --all-files` passed. Codex assisted with the implementation and verification. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
