mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Fix -Wdisabled-macro-expansion and -Wmissing-prototypes in two more build targets
- musl build: `stderr` is defined as a recursive macro `#define stderr (stderr)`, which triggers `-Wdisabled-macro-expansion` when used as a function argument. Suppress the warning in `LocalServer.cpp` the same way it is already handled in `FuzzLoop.cpp`. - arm_fuzzers build: the `DEFINE_BINARY_PROTO_FUZZER` macro from `libprotobuf-mutator` expands to definitions of `LLVMFuzzerCustomMutator`, `LLVMFuzzerCustomCrossOver`, and `LLVMFuzzerTestOneInput` without preceding prototypes, and the generated `out.cpp` defines `GenerateSentence` without one either. Add `-Wno-missing-prototypes` to the compile flags for the codegen fuzzer sources where we cannot easily add declarations. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=100976&sha=latest&name_0=PR Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
c8be129a5b
commit
17bdae2f4b
@@ -1,3 +1,6 @@
|
||||
/// musl defines `stderr` as `(stderr)` which triggers `-Wdisabled-macro-expansion`.
|
||||
#pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
|
||||
|
||||
#include <LocalServer.h>
|
||||
|
||||
#include <sys/resource.h>
|
||||
|
||||
Reference in New Issue
Block a user