slice generated classess in c++ and unused parameters

in Help Center
Hi
when i compile c++ classes generated with slice2cpp i get a lot of warnings like this
is this normal? any tip for avoid this warnings?
when i compile c++ classes generated with slice2cpp i get a lot of warnings like this
g++ -c -pipe -Wall -W -O2 -march=pentium4 -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I/opt/Ice-3.0.1/include -I../../include -I/usr/qt/3/include -o .obj/CmsSite.o ../../src/Cms/CmsSite.cpp ../../src/Cms/CmsSite.cpp: In member function `IceInternal::DispatchStatus Oz::Cms::CmsSiteClient::___initialize(IceInternal::Incoming&, const Ice::Current&)': ../../src/Cms/CmsSite.cpp:2549: warning: unused parameter ` IceInternal::Incoming&__inS' ../../src/Cms/CmsSite.cpp: In member function `Oz::Cms::CmsSite::CmsSite(const Oz::Base::Keys&, const Oz::Base::OnRezPrx&, const Oz::Base::OnRezServicePrx&, const IceStorm::TopicPrx&, const Oz::Base::TopicsMap&, const Ice::Identity&, const Oz::Base::AclPrx&, long long int, const Oz::Base::ComentIdMap&, const Oz::Base::ComentNumberMap&, bool, const std::string&, const Oz::Base::StringMap&, const Oz::Base::StringMap&, const Oz::Files::FileSystemPrx&, const Oz::Domains::DomainPrx&, const Oz::Domains::GroupPrx&, const Oz::Domains::GroupPrx&, const Oz::Domains::GroupPrx&, const Oz::Domains::GroupPrx&, const std::string&, const Oz::Cms::StringLocaleMap&, const Oz::Mail::MailAcountPrx&, const Oz::Cms::ConfirmationMailPrx&, const Oz::Cms::UserProfileMap&, const Oz::Cms::AcountDataMap&, const Oz::Files::DocumentPrx&)': ../../src/Cms/CmsSite.cpp:3049: warning: unused parameter `consta linux box with gcc-3.3.6 / Ice-3.0.1
is this normal? any tip for avoid this warnings?
0
Comments
Could you post the corresponding Slice definitions?
Thanks,
Bernard
I atach a file with slices you must reaname it as tar.bz2
and extract with tar jxf
the warning of previous Post is form Cms/CmsSite.ice generated files but this ocurr with more.
thanks
We will look into avoiding this warning in a future Ice version. Should you have a more urgent commercial need please contact us at [email protected].
For example, in Mail/Email.ice I see:
Now, I'm not sure exactly what this does, but assuming it sends an email the use of idempotent in this case would most likely be incorrect. The definition from the Ice manual is as follows:
If you mark a method as idempotent the Ice runtime code could call the same method more than once. I assume that executing send twice will send the same email twice, which isn't the same thing as sending it once
Of course, its possible that I don't understand your interfaces or implementation -- but I thought I should point this out.
Looking at the generated code you can see:
This method is used for the server side dispatch of a method invocation. Since there are no in or out arguments the __inS parameter is not used.
This does not represent an error.