[PR #334] [CLOSED] Fix build with -Wshadow. #931

Closed
opened 2026-01-29 20:51:43 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/google/brotli/pull/334
Author: @PiotrSikora
Created: 3/24/2016
Status: ❌ Closed

Base: master ← Head: shadow


📝 Commits (1)

📊 Changes

5 files changed (+42 additions, -41 deletions)

View changed files

📝 enc/block_splitter.cc (+3 -3)
📝 enc/compress_fragment.cc (+10 -10)
📝 enc/compress_fragment_two_pass.cc (+10 -10)
📝 enc/entropy_encode.cc (+3 -3)
📝 enc/literal_cost.cc (+16 -15)

📄 Description

Local variable shadowing makes code quite confusing in most cases.

I'm not sure if the new variable names are correct in all those cases,
so feel free to rename them.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/google/brotli/pull/334 **Author:** [@PiotrSikora](https://github.com/PiotrSikora) **Created:** 3/24/2016 **Status:** ❌ Closed **Base:** `master` ← **Head:** `shadow` --- ### 📝 Commits (1) - [`6210596`](https://github.com/google/brotli/commit/6210596ed29e4da26668d0a6a1bfe7072aec2501) Fix build with -Wshadow. ### 📊 Changes **5 files changed** (+42 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `enc/block_splitter.cc` (+3 -3) 📝 `enc/compress_fragment.cc` (+10 -10) 📝 `enc/compress_fragment_two_pass.cc` (+10 -10) 📝 `enc/entropy_encode.cc` (+3 -3) 📝 `enc/literal_cost.cc` (+16 -15) </details> ### 📄 Description Local variable shadowing makes code quite confusing in most cases. I'm not sure if the new variable names are correct in all those cases, so feel free to rename them. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 20:51:43 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#931