Commit bb4a44d
authored
Silence warnings about
Builds were producing a great number of warnings like this:
```
cc1plus: warning: command-line option '-Wno-deprecated-non-prototype' is valid for C/ObjC but not for C++
```
These warnings came from a build option in the `.bazelrc` file written
by `configure.sh`, specifically the application of
`-Wno-deprecated-non-prototype` to C++ files in external dependencies
even though the flag is only valid for C. This PR changes the Bazel
build `per_file_copt` and `host_per_file_copt` regexes for
`-Wno-deprecated-non-prototype` from `external/.*` to `external/.*[.]c$`
to target only C source files.-Wno-deprecated-non-prototype (#989)1 parent ce3570d commit bb4a44d
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
236 | 238 | | |
237 | 239 | | |
238 | | - | |
| 240 | + | |
| 241 | + | |
239 | 242 | | |
240 | | - | |
241 | | - | |
242 | | - | |
| 243 | + | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
| |||
0 commit comments