id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 2284,GCC shadow warnings from shared_mutex.hpp,Chris Newbold,Anthony Williams,"One-line test program: {{{ #include }}} Compiled like so: {{{ g++ -Wshadow example.cpp }}} Yields, among others, the following shadow warnings from shared_mutex resulting from the lock() member function and local scoped_lock instances named 'lock': In file included from /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/shared_mutex.hpp:16, from /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread.hpp:22, from 136.C:1: /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'void boost::shared_mutex::lock_shared()': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:60: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'bool boost::shared_mutex::try_lock_shared()': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:71: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'bool boost::shared_mutex::timed_lock_shared(const boost::system_time&)': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:87: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'void boost::shared_mutex::unlock_shared()': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:108: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'void boost::shared_mutex::lock()': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:130: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'bool boost::shared_mutex::timed_lock(const boost::system_time&)': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:143: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'bool boost::shared_mutex::try_lock()': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:171: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'void boost::shared_mutex::unlock()': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:187: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'void boost::shared_mutex::lock_upgrade()': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:196: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'bool boost::shared_mutex::timed_lock_upgrade(const boost::system_time&)': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:208: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'bool boost::shared_mutex::try_lock_upgrade()':/mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:233: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'void boost::shared_mutex::unlock_upgrade()': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:248: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'void boost::shared_mutex::unlock_upgrade_and_lock()': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:262: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'void boost::shared_mutex::unlock_and_lock_upgrade()': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:274: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'void boost::shared_mutex::unlock_and_lock_shared()': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:284: warning: declaration of 'lock' shadows a member of 'this' /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp: In member function 'void boost::shared_mutex::unlock_upgrade_and_lock_shared()': /mathworks/devel/sandbox/cnewbold/3rdp/3p/import/boost/boost/thread/pthread/shared_mutex.hpp:293: warning: declaration of 'lock' shadows a member of 'this' ",Bugs,closed,Boost 1.37.0,None,Boost 1.36.0,Problem,fixed,,