Skip to content

fix: resolve compiler warnings in graph-based index implementations#4956

Closed
maxwbuckley wants to merge 1 commit intofacebookresearch:mainfrom
maxwbuckley:fix/warnings-graph-indexes
Closed

fix: resolve compiler warnings in graph-based index implementations#4956
maxwbuckley wants to merge 1 commit intofacebookresearch:mainfrom
maxwbuckley:fix/warnings-graph-indexes

Conversation

@maxwbuckley
Copy link
Copy Markdown
Contributor

Summary

  • Fix compiler warnings in HNSW, NSG, NNDescent graph implementations and their Index wrappers
  • Also covers ClusteringInitialization, Panorama, and IndexBinaryHNSW
  • Fixes include -Wshadow (variable renames), -Wunused-parameter, and -Wimplicit-fallthrough

All changes are mechanical. No functional changes.

Part 3/13 of the compiler warnings cleanup (split from #4810 per maintainer request).

Test plan

  • No functional changes — all fixes are mechanical renames and annotations

🤖 Generated with Claude Code

Resolve -Wall -Wextra -Wshadow warnings in graph index files:
- Rename constructor/function parameters that shadow member variables
- Add explicit casts for sign comparison warnings
- Add [[maybe_unused]] attributes where appropriate
- Fix unused parameter warnings

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Mar 19, 2026

@alibeklfc has imported this pull request. If you are a Meta employee, you can view this in D97359107.

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Mar 20, 2026

@alibeklfc merged this pull request in 4db01e3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant