• 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
Channel.h 16.4 KB