• Ulrich Sibiller's avatar
    Channel.h: rename variable to prevent shadowing · 2c66355c
    Ulrich Sibiller authored
    In file included from Proxy.h:39:0,
                     from ServerProxy.h:32,
                     from ServerProxy.cpp:36:
    Channel.h: In member function 'int Channel::handleEncodeIdentity(EncodeBuffer&, ChannelCache*, MessageStore*, const unsigned char*, unsigned int, int)':
    Channel.h:369:3: warning: declaration of 'bigEndian' shadows a member of 'this' [-Wshadow]
       {
       ^
    Channel.h: In member function 'int Channel::handleDecodeIdentity(DecodeBuffer&, ChannelCache*, MessageStore*, unsigned char*&, unsigned int&, int, WriteBuffer*)':
    Channel.h:378:3: warning: declaration of 'bigEndian' shadows a member of 'this' [-Wshadow]
       {
       ^
    
    RHEL7's g++ 4.8.5 reports this while Debian's g++ 10.2.0-15 does
    not. This is described in
    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57709 and fixed in gcc
    5.0.
    
    Rename the variables anyway to be on the safe side.
    
    Fixes ArcticaProject/nx-libs#956
    2c66355c
Name
Last commit
Last update
debian Loading commit data...
doc Loading commit data...
etc Loading commit data...
m4 Loading commit data...
nx-X11 Loading commit data...
nxcomp Loading commit data...
nxcompshad Loading commit data...
nxdialog Loading commit data...
nxproxy Loading commit data...
testscripts Loading commit data...
.gitignore Loading commit data...
.pvs-studio.sh Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
LICENSE Loading commit data...
LICENSE.nxcomp Loading commit data...
Makefile Loading commit data...
README.NX-development Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
VERSION Loading commit data...
fix-patch-whitespace Loading commit data...
make-changelog.sh Loading commit data...
mesa-quilt Loading commit data...
nx-libs.spec Loading commit data...
regenerate-symbol-docs.sh Loading commit data...
replace.sh Loading commit data...
roll-tarballs.sh Loading commit data...
run-static-analysis.sh Loading commit data...
static-analysis-suppressions Loading commit data...
version.sh Loading commit data...