From 5f40d12e741aa30d506eaa15673fb2ae76d29468 Mon Sep 17 00:00:00 2001 From: philwo Date: Wed, 25 Nov 2020 07:13:12 -0800 Subject: [PATCH] Fix external_path_test with newer Xcode versions. I found this when running Bazel's test suite with Xcode 12.2: ``` external/remote/lib/lib.c:2:3: error: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Werror,-Wimplicit-function-declaration] printf("Hello %s\n", s); ^ external/remote/lib/lib.c:2:3: note: include the header or explicitly provide a declaration for 'printf' ``` PiperOrigin-RevId: 344247362 --- src/test/shell/bazel/external_path_test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/shell/bazel/external_path_test.sh b/src/test/shell/bazel/external_path_test.sh index 3720c6de1a587b..a5e8bba470c7aa 100755 --- a/src/test/shell/bazel/external_path_test.sh +++ b/src/test/shell/bazel/external_path_test.sh @@ -69,6 +69,8 @@ EOF #define TARGET "World" EOF cat > lib/lib.c <<'EOF' +#include + int greet(char *s) { printf("Hello %s\n", s); return 0;