1. 03 Nov, 2020 1 commit
    • 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
  2. 26 Jul, 2017 2 commits
  3. 05 Jul, 2016 1 commit
  4. 13 Nov, 2011 3 commits