Commit 0b400104 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 6

Don't disable the shadowing warning just for a parameter name

Summary: Just rename the parameter instead, it's not worth it.

Reviewed By: yfeldblum

Differential Revision: D3651065

fbshipit-source-id: ce11c35a7923ab7e10868cedb49c47c0b427fd0c
parent 8fdd5f1b
......@@ -375,14 +375,11 @@ class BitIterator
* Construct a BitIterator that points at a given bit offset (default 0)
* in iter.
*/
#pragma GCC diagnostic push // bitOffset shadows a member
#pragma GCC diagnostic ignored "-Wshadow"
explicit BitIterator(const BaseIter& iter, size_t bitOffset=0)
explicit BitIterator(const BaseIter& iter, size_t bitOff=0)
: bititerator_detail::BitIteratorBase<BaseIter>::type(iter),
bitOffset_(bitOffset) {
bitOffset_(bitOff) {
assert(bitOffset_ < bitsPerBlock());
}
#pragma GCC diagnostic pop
size_t bitOffset() const {
return bitOffset_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment