Skip to content

Commit

Permalink
ignore
Browse files Browse the repository at this point in the history
```
[libR-sys 0.6.0] clang diag: C:/rtools43/x86_64-w64-mingw32.static.posix/include\stdio.h:169:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
```
  • Loading branch information
CGMossa committed Nov 2, 2023
1 parent 9b860b4 commit dbf410b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,10 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) {
format!("--target={target}"),
]);

// stops warning about ignored attributes,
// e.g. ignores `__format__` attributes caused by `stdio.h`
bindgen_builder = bindgen_builder.clang_arg("-Wno-ignored-attributes");

// allow injection of an alternative include path to libclang
if let Some(alt_include) = env::var_os(ENVVAR_LIBCLANG_INCLUDE_PATH) {
bindgen_builder =
Expand Down

0 comments on commit dbf410b

Please sign in to comment.