From b1ae6b2c27c9b37d159bb51855215e46e667e4bf Mon Sep 17 00:00:00 2001 From: Ted Poole Date: Tue, 22 Mar 2022 13:34:40 +0000 Subject: [PATCH] Ensure librdkafka is configured correctly if compiler warnings are disabled (#142) Signed-off-by: Ted Poole --- bazel/foreign_cc/BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/foreign_cc/BUILD b/bazel/foreign_cc/BUILD index 3fa99df4c3ed..119faded9b33 100644 --- a/bazel/foreign_cc/BUILD +++ b/bazel/foreign_cc/BUILD @@ -44,7 +44,7 @@ cc_library( configure_make( name = "librdkafka_build", configure_in_place = True, - configure_options = ["--disable-ssl --disable-gssapi --disable-lz4-ext --disable-zstd && cp Makefile.config src/.. && cp config.h src/.."], + configure_options = ["--CFLAGS=\"${CFLAGS:-} -Werror=implicit-function-declaration\" --disable-ssl --disable-gssapi --disable-lz4-ext --disable-zstd && cp Makefile.config src/.. && cp config.h src/.."], lib_source = "@edenhill_librdkafka//:all", out_static_libs = [ "librdkafka.a",