Skip to content

Commit

Permalink
Fix external_path_test with newer Xcode versions.
Browse files Browse the repository at this point in the history
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 <stdio.h> or explicitly provide a declaration for 'printf'
```

PiperOrigin-RevId: 344247362
  • Loading branch information
philwo authored and copybara-github committed Nov 25, 2020
1 parent 2d990cf commit 5f40d12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/shell/bazel/external_path_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ EOF
#define TARGET "World"
EOF
cat > lib/lib.c <<'EOF'
#include <stdio.h>
int greet(char *s) {
printf("Hello %s\n", s);
return 0;
Expand Down

0 comments on commit 5f40d12

Please sign in to comment.