Fix -Wshadow warning in get_chunks_state
get_chunks_state has a member named `data` and its constructor took a parameter named `data`. This is unambiguous in the language, but causes a warning from gcc's -Wshadow when building with WORDS_NEED_ALIGNMENT. Rename the parameter to eliminate the warning. Reported-by: derhass <https://github.com/dxx-rebirth/dxx-rebirth/pull/196>
This commit is contained in:
parent
20163c49bc
commit
604778248d
|
@ -687,8 +687,8 @@ class get_chunks_state :
|
|||
chunk *const list;
|
||||
int *const no;
|
||||
public:
|
||||
get_chunks_state(const uint8_t *data, uint8_t *ndata, chunk *l, int *n) :
|
||||
data(data), new_data(ndata), list(l), no(n)
|
||||
get_chunks_state(const uint8_t *const p, uint8_t *const ndata, chunk *const l, int *const n) :
|
||||
data(p), new_data(ndata), list(l), no(n)
|
||||
{
|
||||
}
|
||||
static uint_fast32_t translate_opcode(const uint8_t *, const uint16_t op)
|
||||
|
|
Loading…
Reference in a new issue