Suppress warnings from fields never used or never assigned (CS0169 and CS0649) (#919)
* chore : disable unwanted warnings and minor code cleanup * chore : remove more warnings * fix : reorder struct correctly * fix : restore _isKernel and remove useless comment * fix : copy/paste error * fix : restore CallMethod call * fix : whitespace * chore : clean using * feat : remove warnings * fix : simplify warning removal on struct * fix : revert fields deletion and code clean up * fix : re-add RE value * fix : typo
This commit is contained in:
parent
91fa1debd4
commit
4738113f29
65 changed files with 127 additions and 28 deletions
|
@ -8,7 +8,9 @@ namespace Ryujinx.HLE.HOS.Services.Arp
|
|||
public int Version;
|
||||
public byte BaseGameStorageId;
|
||||
public byte UpdateGameStorageId;
|
||||
#pragma warning disable CS0649
|
||||
public short Padding;
|
||||
#pragma warning restore CS0649
|
||||
|
||||
public static ApplicationLaunchProperty Default
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
struct UpdateDataHeader
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
public int Revision;
|
||||
public int BehaviorSize;
|
||||
public int MemoryPoolSize;
|
||||
|
@ -18,5 +19,6 @@
|
|||
public int Unknown34;
|
||||
public int Unknown38;
|
||||
public int TotalSize;
|
||||
#pragma warning restore CS0649
|
||||
}
|
||||
}
|
|
@ -9,7 +9,9 @@ namespace Ryujinx.HLE.HOS.Services.Bluetooth
|
|||
[Service("btdrv")]
|
||||
class IBluetoothDriver : IpcService
|
||||
{
|
||||
#pragma warning disable CS0169
|
||||
private string _unknownLowEnergy;
|
||||
#pragma warning restore CS0169
|
||||
|
||||
public IBluetoothDriver(ServiceCtx context) { }
|
||||
|
||||
|
|
|
@ -26,7 +26,9 @@ namespace Ryujinx.HLE.HOS.Services.Hid
|
|||
|
||||
private long _npadCommunicationMode;
|
||||
private uint _accelerometerPlayMode;
|
||||
#pragma warning disable CS0649
|
||||
private long _vibrationGcErmCommand;
|
||||
#pragma warning restore CS0649
|
||||
private float _sevenSixAxisSensorFusionStrength;
|
||||
|
||||
private HidSensorFusionParameters _sensorFusionParams;
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
using Ryujinx.Common;
|
||||
using Ryujinx.Common.Logging;
|
||||
using Ryujinx.Common.Logging;
|
||||
using Ryujinx.Graphics.Gpu.Memory;
|
||||
using Ryujinx.HLE.HOS.Kernel.Process;
|
||||
using Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostAsGpu.Types;
|
||||
using Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvMap;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostAsGpu
|
||||
{
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
{
|
||||
struct UnmapBufferArguments
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
public long Offset;
|
||||
#pragma warning restore CS0649
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,8 +2,10 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostChannel
|
|||
{
|
||||
class NvChannel
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
public int Timeout;
|
||||
public int SubmitTimeout;
|
||||
public int Timeslice;
|
||||
#pragma warning restore CS0649
|
||||
}
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
using Ryujinx.Common.Logging;
|
||||
using Ryujinx.HLE.HOS.Kernel.Common;
|
||||
using Ryujinx.HLE.HOS.Kernel.Process;
|
||||
using Ryujinx.HLE.HOS.Kernel.Threading;
|
||||
using Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostCtrlGpu.Types;
|
||||
using System;
|
||||
|
|
|
@ -44,8 +44,10 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostCtrlGpu.Types
|
|||
|
||||
struct CharacteristicsHeader
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
public long BufferSize;
|
||||
public long BufferAddress;
|
||||
#pragma warning restore CS0649
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
|
|
|
@ -4,8 +4,10 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvMap
|
|||
{
|
||||
class NvMapHandle
|
||||
{
|
||||
#pragma warning disable CS0649
|
||||
public int Handle;
|
||||
public int Id;
|
||||
#pragma warning restore CS0649
|
||||
public int Size;
|
||||
public int Align;
|
||||
public int Kind;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue