Skip to content

Commit

Permalink
Remove redundant warning
Browse files Browse the repository at this point in the history
  • Loading branch information
TollyH committed May 13, 2024
1 parent 7977013 commit ebfedd3
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions AssemblerWarnings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ public AssemblerWarnings(bool usingV1Format)
warningFinalAnalyzers = new Dictionary<int, FinalWarningAnalyzer>
{
{ 0002, Analyzer_Final_Warning_0002 },
{ 0003, Analyzer_Final_Warning_0003 },
{ 0004, Analyzer_Final_Warning_0004 },
{ 0005, Analyzer_Final_Warning_0005 },
{ 0006, Analyzer_Final_Warning_0006 },
Expand Down Expand Up @@ -547,23 +546,6 @@ private List<Warning> Analyzer_Final_Warning_0002()
return warnings;
}

private List<Warning> Analyzer_Final_Warning_0003()
{
// Warning 0003: Jump/Call target address points to end of file, not executable code.
List<Warning> warnings = new();
foreach ((FilePosition jumpPosition, string? jumpMacroName, int jumpMacroLineDepth, ulong jumpAddress) in jumpCallToAddress)
{
ulong address = BinaryPrimitives.ReadUInt64LittleEndian(finalProgram.AsSpan()[(int)jumpAddress..]);
if (address >= currentAddress)
{
warnings.Add(new Warning(WarningSeverity.Warning, 0003, jumpPosition,
lineMnemonics[(jumpPosition, jumpMacroLineDepth)], lineOperands[(jumpPosition, jumpMacroLineDepth)],
lineText[(jumpPosition, jumpMacroLineDepth)], jumpMacroName));
}
}
return warnings;
}

private List<Warning> Analyzer_Final_Warning_0004()
{
// Warning 0004: Instruction writes to an address pointing to executable code.
Expand Down

0 comments on commit ebfedd3

Please sign in to comment.