[Bug 29838] New: Compiling code that uses tpqt4 results in loads of warnings with -Wshadow

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 27 14:05:00 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29838

           Summary: Compiling code that uses tpqt4 results in loads of
                    warnings with -Wshadow
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: tp-qt4
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: grundleborg at googlemail.com
         QAContact: telepathy-bugs at lists.freedesktop.org


Compiling code that uses tpqt4 results in loads of warnings with -Wshadow

I'm not sure if any of these actually matter, but in case they do...

Here are some fragments of compiler output in case they are useful.

In file included from /opt/kde/include/telepathy-1.0/TelepathyQt4/SharedPtr:8,  
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/types.h:32,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/Types:8,
                 from
/home/gberg/development/src/work/collabora/libktelepathy/src/jobs/abstractrequestchanneljob_p.h:30,
                 from
/home/gberg/development/src/work/collabora/libktelepathy/src/jobs/requesttextchatroomjob.cpp:20:
/opt/kde/include/telepathy-1.0/TelepathyQt4/shared-ptr.h: In constructor
'Tp::WeakData::WeakData(Tp::RefCounted*)':
/opt/kde/include/telepathy-1.0/TelepathyQt4/shared-ptr.h:46: warning:
declaration of 'd' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/shared-ptr.h: In constructor
'Tp::SharedPtr<T>::SharedPtr(T*)':
/opt/kde/include/telepathy-1.0/TelepathyQt4/shared-ptr.h:72: warning:
declaration of 'd' shadows a member of 'this'
In file included from
/opt/kde/include/telepathy-1.0/TelepathyQt4/MethodInvocationContext:8,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/types.h:33,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/Types:8,
                 from
/home/gberg/development/src/work/collabora/libktelepathy/src/jobs/abstractrequestchanneljob_p.h:30,
                 from
/home/gberg/development/src/work/collabora/libktelepathy/src/jobs/requesttextchatroomjob.cpp:20:
/opt/kde/include/telepathy-1.0/TelepathyQt4/method-invocation-context.h: In
member function 'void Tp::MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7,
T8>::setFinishedWithError(const QString&, const QString&)':
/opt/kde/include/telepathy-1.0/TelepathyQt4/method-invocation-context.h:134:
warning: declaration of 'errorMessage' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/method-invocation-context.h:134:
warning: declaration of 'errorName' shadows a member of 'this'
In file included from /opt/kde/include/telepathy-1.0/TelepathyQt4/dbus.h:51,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/DBus:8,
                 from
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:32,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/Connection:8,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/account.h:31,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/Account:8,
                 from
/home/gberg/development/src/work/collabora/libktelepathy/src/jobs/requesttextchatroomjob.cpp:22:
/opt/kde/include/telepathy-1.0/TelepathyQt4/_gen/cli-dbus.h: In member function
'QDBusPendingReply<unsigned int, void, void, void, void, void, void, void>
Tp::Client::DBus::DBusDaemonInterface::StartServiceByName(const QString&,
uint)':
/opt/kde/include/telepathy-1.0/TelepathyQt4/_gen/cli-dbus.h:175: warning:
declaration of 'service' shadows a member of 'this'
In file included from
/opt/kde/include/telepathy-1.0/TelepathyQt4/OptionalInterfaceFactory:8,
                 from
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:34,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/Connection:8,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/account.h:31,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/Account:8,
                 from
/home/gberg/development/src/work/collabora/libktelepathy/src/jobs/requesttextchatroomjob.cpp:22:
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:110:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'void
Tp::OptionalInterfaceFactory<DBusProxySubclass>::setInterfaces(const
QStringList&)':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:118:
warning: declaration of 'interfaces' shadows a member of 'this'
/home/gberg/development/src/work/collabora/libktelepathy/src/jobs/requesttextchatroomjob.cpp:
In constructor
'KTelepathy::RequestTextChatroomJob::RequestTextChatroomJob(KTelepathy::RequestTextChatroomJobPrivate&,
QObject*)':
/home/gberg/development/src/work/collabora/libktelepathy/src/jobs/requesttextchatroomjob.cpp:78:
warning: declaration of 'parent' shadows a member of 'this'
In file included from
/opt/kde/include/telepathy-1.0/TelepathyQt4/OptionalInterfaceFactory:8,
                 from
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:34,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/Connection:8,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/account.h:31,
                 from /opt/kde/include/telepathy-1.0/TelepathyQt4/Account:8,
                 from
/home/gberg/development/src/work/collabora/libktelepathy/src/jobs/requesttextchatroomjob.cpp:22:
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::DBus::PropertiesInterface, DBusProxySubclass =
Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::DBus::PropertiesInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:120:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfaceAliasingInterface, DBusProxySubclass
= Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::ConnectionInterfaceAliasingInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:126:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfaceAnonymityInterface,
DBusProxySubclass = Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::ConnectionInterfaceAnonymityInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:132:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfaceAvatarsInterface, DBusProxySubclass
= Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::ConnectionInterfaceAvatarsInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:138:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfaceCapabilitiesInterface,
DBusProxySubclass = Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::ConnectionInterfaceCapabilitiesInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:144:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfaceContactCapabilitiesInterface,
DBusProxySubclass = Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface =
Tp::Client::ConnectionInterfaceContactCapabilitiesInterface, DBusProxySubclass
= Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:150:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfaceLocationInterface, DBusProxySubclass
= Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::ConnectionInterfaceLocationInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:156:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfaceContactInfoInterface,
DBusProxySubclass = Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::ConnectionInterfaceContactInfoInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:162:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfacePresenceInterface, DBusProxySubclass
= Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::ConnectionInterfacePresenceInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:168:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfaceServicePointInterface,
DBusProxySubclass = Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::ConnectionInterfaceServicePointInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:174:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfaceSimplePresenceInterface,
DBusProxySubclass = Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::ConnectionInterfaceSimplePresenceInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:180:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfaceRequestsInterface, DBusProxySubclass
= Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::ConnectionInterfaceRequestsInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:186:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfaceBalanceInterface, DBusProxySubclass
= Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::ConnectionInterfaceBalanceInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:192:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::ConnectionInterfaceCellularInterface, DBusProxySubclass
= Tp::Connection]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::ConnectionInterfaceCellularInterface,
DBusProxySubclass = Tp::Connection]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/connection.h:198:   instantiated
from here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::DBus::PropertiesInterface, DBusProxySubclass =
Tp::Account]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::DBus::PropertiesInterface,
DBusProxySubclass = Tp::Account]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/account.h:278:   instantiated from
here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h: In
member function 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::interface() const [with
Interface = Tp::Client::AccountInterfaceAvatarInterface, DBusProxySubclass =
Tp::Account]':
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:94:  
instantiated from 'Interface*
Tp::OptionalInterfaceFactory<DBusProxySubclass>::optionalInterface(Tp::OptionalInterfaceFactory<DBusProxySubclass>::InterfaceSupportedChecking)
const [with Interface = Tp::Client::AccountInterfaceAvatarInterface,
DBusProxySubclass = Tp::Account]'
/opt/kde/include/telepathy-1.0/TelepathyQt4/account.h:284:   instantiated from
here
/opt/kde/include/telepathy-1.0/TelepathyQt4/optional-interface-factory.h:111:
warning: declaration of 'interface' shadows a member of 'this'

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list