Fix compiler warnings across the project#44
Merged
jonathanvdc merged 3 commits intomasterfrom Mar 28, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/jonathanvdc/Flame/sessions/f6e123c5-be46-4cf7-95ad-9e1ddb9246c2 Co-authored-by: jonathanvdc <9839946+jonathanvdc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix compiler warnings during project build
Fix compiler warnings across the project
Mar 28, 2026
jonathanvdc
requested changes
Mar 28, 2026
Owner
jonathanvdc
left a comment
There was a problem hiding this comment.
Good work but this fails on the portable test suite. e.g., try the OptimizeRecursiveMethod test
Agent-Logs-Url: https://github.com/jonathanvdc/Flame/sessions/5c800215-2c4b-45b3-80fa-41236afddbc7 Co-authored-by: jonathanvdc <9839946+jonathanvdc@users.noreply.github.com>
Contributor
Author
Fixed in 760f0ca. The issue was in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Several compiler warnings were present across the codebase, spanning obsolete API usage, incorrect value-type identity comparisons, stale XML doc comments, and an unassigned variable capture.
Changes
SYSLIB0051 (
ContractHelpers.cs): Remove obsolete[Serializable]+SerializationInfo/StreamingContextconstructor from privateAssertionException; unused in .NET 10.CA2013 (
SwitchFlow.cs,ReturnFlow.cs): Replaceobject.ReferenceEqualswith.EqualsforInstruction(a value type) — boxing makesReferenceEqualsalways returnfalse.CS0618 — Loyc API renames (
EncoderState.cs,TypeCodec.cs,InstructionCodecElements.cs,DecoderState.cs):EmptySourceFile.Default→EmptySourceFile.SyntheticCodeSymbols.PtrArrow→CodeSymbols.RightArrowCodeSymbols.Switch→CodeSymbols.SwitchStmt(encoder + decoder)LNodeFactory.List(...)→LNodeFactory.AltList(...)CS0618 —
CustomLiteral(ConstantCodec.cs): Encode integer literals using the newFactory.Literal(value, symbol)overload withTypeMarker. Decoder updated to readnode.TypeMarkerdirectly, with a pragma-suppressed fallback for oldCustomLiteral-encoded nodes.CS1572/CS1573 (
ClrMethodBodyAnalyzer.cs): Fix<param>doc tags referencing non-existentlandingPadTag— update to match the actual parameteranalyzedHandler.CS8887 (
DeferredInitializerTests.cs): Initializeinittodefaultbefore it is captured in a recursive lambda.⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.