mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
`musl` libc defines `stdin`/`stdout`/`stderr` as recursive macros (e.g. `#define stdin (stdin)`), which triggers `-Wdisabled-macro-expansion` when these are passed as arguments to `freopen` in Poco's `ServerApplication::beDaemon`. `base/poco/Util/src/ServerApplication.cpp` is vendored upstream Poco code, alongside many other warning suppressions already applied at the target level (note the `TODO: remove these warning exclusions`). Add `-Wno-disabled-macro-expansion` to the `_poco_util` target compile options to keep the suppression consistent with how other warnings are handled there (matching the same fix already applied to `_poco_xml` for `xmlparse.cpp`). CI report: https://s3.amazonaws.com/clickhouse-test-reports/PRs/100976/0ecb5450f98d3126809fd29cee9838f479a505f8/build_amd_musl/build_clickhouse/build_clickhouse.log PR: https://github.com/ClickHouse/ClickHouse/pull/100976 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
24 lines
724 B
CMake
24 lines
724 B
CMake
file (GLOB SRCS src/*.cpp)
|
|
|
|
add_library (_poco_util ${SRCS})
|
|
add_library (Poco::Util ALIAS _poco_util)
|
|
|
|
# TODO: remove these warning exclusions
|
|
target_compile_options (_poco_util
|
|
PRIVATE
|
|
-Wno-deprecated-dynamic-exception-spec
|
|
-Wno-disabled-macro-expansion
|
|
-Wno-extra-semi-stmt
|
|
-Wno-newline-eof
|
|
-Wno-old-style-cast
|
|
-Wno-shadow
|
|
-Wno-sign-compare
|
|
-Wno-suggest-destructor-override
|
|
-Wno-suggest-override
|
|
-Wno-unused-parameter
|
|
-Wno-zero-as-null-pointer-constant
|
|
-Wno-implicit-int-conversion
|
|
)
|
|
target_include_directories (_poco_util SYSTEM PUBLIC "include")
|
|
target_link_libraries (_poco_util PUBLIC Poco::JSON Poco::XML Poco::Net)
|