Fix -Wshadow warning in visited_segment_bitarray_t::bitproxy_t
bitproxy_t inherits a method named `shift` and its constructor took a parameter named `shift`. This is unambiguous in the language, but causes a warning from gcc's -Wshadow in gcc before 5.x. Rename the parameter to eliminate the warning. Reported-by: Mako88 <https://github.com/dxx-rebirth/dxx-rebirth/issues/200>
This commit is contained in:
parent
aa4ad79fbe
commit
359f6f58ee
|
@ -366,8 +366,8 @@ class visited_segment_bitarray_t : public visited_segment_mask_t<bool, 1>
|
||||||
};
|
};
|
||||||
struct bitproxy_t : public tmpl_bitproxy_t<array_t::reference>
|
struct bitproxy_t : public tmpl_bitproxy_t<array_t::reference>
|
||||||
{
|
{
|
||||||
bitproxy_t(array_t::reference byte, unsigned shift) :
|
bitproxy_t(array_t::reference byte, unsigned s) :
|
||||||
tmpl_bitproxy_t<array_t::reference>(byte, shift)
|
tmpl_bitproxy_t<array_t::reference>(byte, s)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
bitproxy_t& operator=(bool b)
|
bitproxy_t& operator=(bool b)
|
||||||
|
|
Loading…
Reference in a new issue