mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix warnings.
This commit is contained in:
Submodule Aaru.CommonTypes updated: 6934ef3de3...78479d1571
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Submodule Aaru.Helpers updated: 5de0e8a5e7...cd3fe08e07
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user