diff options
author | jfrijters <jfrijters> | 2011-02-15 16:47:49 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-02-15 16:47:49 +0300 |
commit | 3cd8e5b6e594172b66a9e97742229b3a49a589c1 (patch) | |
tree | 081fa4eb86f6c7bd5a76fe383f5aee4a55b9f41a /reflect/Reader | |
parent | 8f19bc1641000c251a3a465ef3d95ae004dcdfc7 (diff) |
Avoid compiler warnings about unused locals.
Diffstat (limited to 'reflect/Reader')
-rw-r--r-- | reflect/Reader/ModuleReader.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/reflect/Reader/ModuleReader.cs b/reflect/Reader/ModuleReader.cs index d0db64cd..5b2ec44b 100644 --- a/reflect/Reader/ModuleReader.cs +++ b/reflect/Reader/ModuleReader.cs @@ -160,13 +160,13 @@ namespace IKVM.Reflection.Reader { throw new BadImageFormatException("Invalid metadata signature"); } - ushort MajorVersion = br.ReadUInt16(); - ushort MinorVersion = br.ReadUInt16(); - uint Reserved = br.ReadUInt32(); + /*ushort MajorVersion =*/ br.ReadUInt16(); + /*ushort MinorVersion =*/ br.ReadUInt16(); + /*uint Reserved =*/ br.ReadUInt32(); uint Length = br.ReadUInt32(); byte[] buf = br.ReadBytes((int)Length); Version = Encoding.UTF8.GetString(buf).TrimEnd('\u0000'); - ushort Flags = br.ReadUInt16(); + /*ushort Flags =*/ br.ReadUInt16(); ushort Streams = br.ReadUInt16(); StreamHeader[] streamHeaders = new StreamHeader[Streams]; for (int i = 0; i < streamHeaders.Length; i++) @@ -180,14 +180,14 @@ namespace IKVM.Reflection.Reader private void ReadTables(BinaryReader br) { Table[] tables = GetTables(); - uint Reserved0 = br.ReadUInt32(); + /*uint Reserved0 =*/ br.ReadUInt32(); byte MajorVersion = br.ReadByte(); byte MinorVersion = br.ReadByte(); metadataStreamVersion = MajorVersion << 16 | MinorVersion; byte HeapSizes = br.ReadByte(); - byte Reserved7 = br.ReadByte(); + /*byte Reserved7 =*/ br.ReadByte(); ulong Valid = br.ReadUInt64(); - ulong Sorted = br.ReadUInt64(); + /*ulong Sorted =*/ br.ReadUInt64(); for (int i = 0; i < 64; i++) { if ((Valid & (1UL << i)) != 0) |