Skip to content

Commit

Permalink
Turn off all warnings when testing for strlcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-airoldie committed Jul 5, 2024
1 parent 061e966 commit 638c447
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ mod glibc {

cc::Build::new()
.warnings(false)
.extra_warnings(false)
.cargo_warning(false)

Check failure on line 77 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Check and Lint (ubuntu-latest, stable)

no method named `cargo_warning` found for mutable reference `&mut cc::Build` in the current scope

Check failure on line 77 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Run unit tests (ubuntu-latest, stable, --features=libsodium)

no method named `cargo_warning` found for mutable reference `&mut cc::Build` in the current scope

Check failure on line 77 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Run unit tests (macos-latest, stable, --release)

no method named `cargo_warning` found for mutable reference `&mut cc::Build` in the current scope

Check failure on line 77 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Run unit tests (macos-latest, stable, --features=libsodium)

no method named `cargo_warning` found for mutable reference `&mut cc::Build` in the current scope
.cargo_metadata(false)
.get_compiler()
.to_command()
.arg(src)
Expand Down

0 comments on commit 638c447

Please sign in to comment.