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:
Alexey Milovidov
2026-04-19 12:02:04 +00:00
co-authored by Claude Opus 4.7
parent c8be129a5b
commit 17bdae2f4b
2 changed files with 6 additions and 2 deletions
+3
View File
@@ -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>