Skip to content

Commit

Permalink
Suppress code trimming warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TollyH committed Nov 24, 2023
1 parent 45d86e5 commit 9b08dac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Processor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ public void LoadProgram(byte[] programData)
/// <exception cref="DivideByZeroException">Thrown if a division instruction is executed with a value of zero as the divisor.</exception>
/// <exception cref="FileNotFoundException">Thrown if an operation that requires a file to exist could not find the target file.</exception>
/// <exception cref="DirectoryNotFoundException">Thrown if an operation that requires a directory to exist could not find the target directory.</exception>
[System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("", "IL2026",
Justification = "Reflection is only performed on external types loaded specifically by the user at runtime.")]
[System.Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("", "IL2080",
Justification = "Reflection is only performed on external types loaded specifically by the user at runtime.")]
public bool Execute(bool runUntilHalt, Stream? stdoutOverride = null)
{
if (!ProgramLoaded)
Expand Down

0 comments on commit 9b08dac

Please sign in to comment.