Skip to content

delta_diff_generator: Drop unused scratch_blocks_used variable - #59

Merged
chewi merged 1 commit into
mainfrom
chewi/scratch_blocks_used
Sep 29, 2026
Merged

chewi merged 1 commit into
mainfrom
chewi/scratch_blocks_used

Conversation

@chewi

@chewi chewi commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

GCC 16.2.1 treats this as a fatal error. This variable hasn't been used since 2010 in 4b8740f! I have build tested the change.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
@chewi chewi self-assigned this Sep 29, 2026
Copilot AI balanced review requested due to automatic review settings September 29, 2026 14:59
@chewi
chewi requested a review from a team as a code owner September 29, 2026 14:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused cleanup removes only dead code without changing behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Removes an unused variable that causes GCC 16.2.1 builds to fail.

Changes:

  • Removes scratch_blocks_used and its unused accumulation.
File Description
src/​update_engine/​delta_diff_generator.cc Removes unused scratch-block accounting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@t-lo t-lo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the quick fix @chewi !

@chewi
chewi merged commit f23d6ea into main Sep 29, 2026
6 checks passed
@chewi
chewi deleted the chewi/scratch_blocks_used branch September 29, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants