From: Kostya Shishkov Date: Thu, 28 Jul 2022 16:39:05 +0000 (+0200) Subject: silence warnings in a newer rustc X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=3518aa855fa776fa96a0deca1660299611e41e96;p=nihav.git silence warnings in a newer rustc --- diff --git a/nihav-commonfmt/src/codecs/ts102366.rs b/nihav-commonfmt/src/codecs/ts102366.rs index 5cf90c5..963f07d 100644 --- a/nihav-commonfmt/src/codecs/ts102366.rs +++ b/nihav-commonfmt/src/codecs/ts102366.rs @@ -170,6 +170,7 @@ const FRAME_SIZES: [[usize; 64]; 4] = [ ]; #[derive(Debug,Clone,Copy)] +#[allow(dead_code)] struct Syncinfo { crc1: u16, fscod: u8, @@ -286,6 +287,7 @@ const AC_MODES: [ACMode; 8] = [ ]; #[derive(Debug,Clone,Copy)] +#[allow(dead_code)] struct Mixinfo { dialnorm: u8, compr: Option, @@ -312,6 +314,7 @@ impl Mixinfo { } #[derive(Debug,Clone,Copy)] +#[allow(dead_code)] struct BSI { bsid: u8, shift: u8, diff --git a/nihav-realmedia/src/codecs/rv60.rs b/nihav-realmedia/src/codecs/rv60.rs index 71668d7..55faf03 100644 --- a/nihav-realmedia/src/codecs/rv60.rs +++ b/nihav-realmedia/src/codecs/rv60.rs @@ -41,6 +41,7 @@ const RV60_FRAME_TYPES: [FrameType; 4] = [ FrameType::I, FrameType::P, FrameType const MAX_IMODE: u8 = 34; #[derive(Clone,Copy,Debug)] +#[allow(dead_code)] struct FrameHeader { profile: u8, ftype: FrameType, diff --git a/nihav-realmedia/src/demuxers/realmedia.rs b/nihav-realmedia/src/demuxers/realmedia.rs index 7a59f56..f508c6a 100644 --- a/nihav-realmedia/src/demuxers/realmedia.rs +++ b/nihav-realmedia/src/demuxers/realmedia.rs @@ -797,6 +797,7 @@ struct InterleaveInfo { } #[derive(Clone,Copy,Debug)] +#[allow(dead_code)] struct RealAudioInfo { fcc: u32, sample_rate: u32,