Skip to content

Fix: Initialize plane_2d to -1 in ShowMetricsWindow#170

Merged
brenocq merged 1 commit into
brenocq:mainfrom
darkvisiontech:fix-msvc-warning-c4701
Feb 12, 2026
Merged

Fix: Initialize plane_2d to -1 in ShowMetricsWindow#170
brenocq merged 1 commit into
brenocq:mainfrom
darkvisiontech:fix-msvc-warning-c4701

Conversation

@JunkyoLee

Copy link
Copy Markdown
Contributor

Initialize local variable plane_2d to -1 in ShowMetricsWindow to address MSVC warning C4701: "potentially uninitialized local variable 'plane_2d' used". This sets a known sentinel value to avoid use-before-initialization and undefined behavior, while preserving existing logic and silencing the compiler warning.

image

Initialize local variable plane_2d to -1 in ShowMetricsWindow to address MSVC warning C4701: "potentially uninitialized local variable 'plane_2d' used". This sets a known sentinel value to avoid use-before-initialization and undefined behavior, while preserving existing logic and silencing the compiler warning.
@JunkyoLee JunkyoLee requested a review from brenocq as a code owner February 12, 2026 12:50
@github-actions github-actions Bot added the status:review The task is under review label Feb 12, 2026
@brenocq brenocq changed the title fix: initialize plane_2d to -1 in ShowMetricsWindow Fix: Initialize plane_2d to -1 in ShowMetricsWindow Feb 12, 2026
@brenocq brenocq added prio:low Low priority type:chore Maintenance tasks (dependencies, configs) labels Feb 12, 2026
@brenocq brenocq merged commit f6ca09e into brenocq:main Feb 12, 2026
5 checks passed
@github-actions github-actions Bot added status:done Task completed successfully and removed status:review The task is under review labels Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

prio:low Low priority status:done Task completed successfully type:chore Maintenance tasks (dependencies, configs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants