Fix warnings.

This commit is contained in:
2020-03-12 00:29:39 +00:00
parent 4cd2410168
commit 236c70fc55
8 changed files with 10 additions and 13 deletions

View File

@@ -32,7 +32,6 @@
using System;
using System.Linq;
using Aaru.Checksums;
using Aaru.CommonTypes.Enums;
using Aaru.CommonTypes.Extents;
using Aaru.CommonTypes.Structs;
@@ -94,7 +93,6 @@ namespace Aaru.Core.Devices.Dumping
byte[] senseBuf = null; // Sense buffer
double cmdDuration = 0; // Command execution time
const uint sectorSize = 2352; // Full sector size
byte[] tmpBuf; // Temporary buffer
newTrim = false;
PlextorSubchannel supportedPlextorSubchannel;
@@ -313,8 +311,8 @@ namespace Aaru.Core.Devices.Dumping
sense = ReadPlextorWithSubchannel(out cmdBuf, out senseBuf,
(uint)(firstSectorToRead + r + adjustment), blockSize,
(uint)sectorsForOffset + 1,
supportedPlextorSubchannel, out cmdDuration);
(uint)sectorsForOffset + 1, supportedPlextorSubchannel,
out cmdDuration);
totalDuration += cmdDuration;

View File

@@ -56,8 +56,7 @@ namespace Aaru.Core.Devices.Dumping
byte[] cmdBuf = null; // Data buffer
double cmdDuration; // Command execution time
const uint sectorSize = 2352; // Full sector size
byte[] tmpBuf; // Temporary buffer
byte[] senseBuf = null; // Sense buffer
byte[] senseBuf = null; // Sense buffer
PlextorSubchannel supportedPlextorSubchannel;
switch(supportedSubchannel)

View File

@@ -55,7 +55,6 @@ namespace Aaru.Core.Devices.Dumping
byte[] cmdBuf = null; // Data buffer
double cmdDuration = 0; // Command execution time
const uint sectorSize = 2352; // Full sector size
byte[] tmpBuf; // Temporary buffer
PlextorSubchannel supportedPlextorSubchannel;
switch(supportedSubchannel)

View File

@@ -36,7 +36,6 @@ using System.Reflection;
using System.Runtime.InteropServices;
using Aaru.CommonTypes.Interop;
using Aaru.Devices;
using Microsoft.EntityFrameworkCore.Internal;
using PlatformID = Aaru.CommonTypes.Interop.PlatformID;
using Version = Aaru.CommonTypes.Interop.Version;
@@ -106,7 +105,7 @@ namespace Aaru.Core.Logging
}
}
logSw.WriteLine("Command line: {0}", args.Join(" "));
logSw.WriteLine("Command line: {0}", string.Join(" ", args));
}
else
logSw.WriteLine("Command line: {0}", Environment.CommandLine);

View File

@@ -48,6 +48,8 @@ using SharpCompress.Compressors.ADC;
using SharpCompress.Compressors.BZip2;
using Version = Resources.Version;
#pragma warning disable 612
namespace Aaru.DiscImages
{
public partial class Udif

View File

@@ -90,7 +90,7 @@ namespace Aaru.Commands
ctx.Database.Migrate();
ctx.SaveChanges();
}
catch(Exception e)
catch(Exception)
{
if(Debugger.IsAttached)
throw;
@@ -107,7 +107,7 @@ namespace Aaru.Commands
{
File.Delete(Settings.Settings.MasterDbPath);
}
catch(Exception e)
catch(Exception)
{
if(Debugger.IsAttached)
throw;