Skip to content

Fix a couple of unused but set variable warnings - #96

Merged
adamdickmeiss merged 1 commit into
masterfrom
fix-unused-variable-warnings
Oct 13, 2026
Merged

adamdickmeiss merged 1 commit into
masterfrom
fix-unused-variable-warnings

Conversation

@adamdickmeiss

Copy link
Copy Markdown
Contributor

No description provided.

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.

🟢 Approval recommended

The warning fixes are localized, consistent with existing behavior, and introduce no unresolved correctness issues.

0 open findings

What changed in this PR

Removes compiler warnings caused by variables that were assigned but never used.

Changes:

  • Removes unused counters from ranking and truncation logic.
  • Reports previously unreferenced dictionary statistics.
  • Removes disabled debug logging code.
File Description
index/​zsets.c Removes an unused ranking counter.
index/​trunc.c Removes unused truncation counters.
dict/​dicttest.c Logs the unchanged-entry count.
dict/​dcompact.c Logs the directory count and removes dead debug code.

🧠 Review effort: Balanced


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

@adamdickmeiss
adamdickmeiss merged commit e5d4f8c into master Oct 13, 2026
3 checks passed
@adamdickmeiss
adamdickmeiss deleted the fix-unused-variable-warnings branch October 13, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants