aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/Loaders
diff options
context:
space:
mode:
authorCristallix <Cristallix@users.noreply.github.com>2020-04-20 23:59:59 +0200
committerGitHub <noreply@github.com>2020-04-21 07:59:59 +1000
commit4738113f293ac2477a553225a24b6c489c6855f1 (patch)
tree1878f27da3cc7e73171c7d905447f1eb9f25cefc /Ryujinx.HLE/Loaders
parent91fa1debd4c5791a12733d75d7ce06a23a1547ff (diff)
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
Diffstat (limited to 'Ryujinx.HLE/Loaders')
-rw-r--r--Ryujinx.HLE/Loaders/Elf/ElfSymbol32.cs2
-rw-r--r--Ryujinx.HLE/Loaders/Elf/ElfSymbol64.cs2
2 files changed, 4 insertions, 0 deletions
diff --git a/Ryujinx.HLE/Loaders/Elf/ElfSymbol32.cs b/Ryujinx.HLE/Loaders/Elf/ElfSymbol32.cs
index b7d98506..32e8af7c 100644
--- a/Ryujinx.HLE/Loaders/Elf/ElfSymbol32.cs
+++ b/Ryujinx.HLE/Loaders/Elf/ElfSymbol32.cs
@@ -2,11 +2,13 @@
{
struct ElfSymbol32
{
+#pragma warning disable CS0649
public uint NameOffset;
public uint ValueAddress;
public uint Size;
public char Info;
public char Other;
public ushort SectionIndex;
+#pragma warning restore CS0649
}
}
diff --git a/Ryujinx.HLE/Loaders/Elf/ElfSymbol64.cs b/Ryujinx.HLE/Loaders/Elf/ElfSymbol64.cs
index 662de1ff..9290e014 100644
--- a/Ryujinx.HLE/Loaders/Elf/ElfSymbol64.cs
+++ b/Ryujinx.HLE/Loaders/Elf/ElfSymbol64.cs
@@ -2,11 +2,13 @@
{
struct ElfSymbol64
{
+#pragma warning disable CS0649
public uint NameOffset;
public char Info;
public char Other;
public ushort SectionIndex;
public ulong ValueAddress;
public ulong Size;
+#pragma warning restore CS0649
}
}