Skip to content

Commit

Permalink
Merge pull request #78 from gnzlbg/unknown_warning
Browse files Browse the repository at this point in the history
Avoid errors on unknown warnings
  • Loading branch information
gnzlbg committed Aug 25, 2019
2 parents 87141bd + 0bbbc85 commit e9b8697
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ctest"
version = "0.2.17"
version = "0.2.18"
authors = [
"Alex Crichton <alex@alexcrichton.com>",
"Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>"
Expand Down
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ impl TestGenerator {
.flag("-Wno-type-limits")
// allow taking address of packed struct members:
.flag("-Wno-address-of-packed-member")
.flag("-Wno-unknown-warning-option")
.flag("-Wno-deprecated-declarations"); // allow deprecated items
}

Expand Down Expand Up @@ -1808,7 +1809,7 @@ impl<'a> Generator<'a> {
t!(writeln!(
self.rust,
r#"
#[allow(non_snake_case, unused_mut, unused_variables)]
#[allow(non_snake_case, unused_mut, unused_variables, deprecated)]
#[inline(never)]
fn roundtrip_padding_{ty}() -> Vec<u8> {{
// stores (offset, size) for each field
Expand Down Expand Up @@ -1925,7 +1926,7 @@ impl<'a> Generator<'a> {
t!(writeln!(
self.rust,
r#"
#[allow(non_snake_case)]
#[allow(non_snake_case, deprecated)]
#[inline(never)]
fn roundtrip_{ty}() {{
use libc::c_int;
Expand Down

0 comments on commit e9b8697

Please sign in to comment.