Archived

This forum has been archived. Please start a new discussion on GitHub.

C++ compile warnings

When trying to compile my c++ code I'm getting the following warnings from the Ice headers.
cc1plus: warnings being treated as errors
/opt/ice-3.4.2_64/include/Ice/IncomingAsync.h:45: warning: 'virtual 
void IceInternal::IncomingAsync::ice_exception()' was hidden
/opt/ice-3.4.2_64/include/Ice/Locator.h:402: warning:   by 'virtual 
void IceAsync::Ice::AMD_Locator_findObjectById::ice_exception(const 
std::exception&)'
/opt/ice-3.4.2_64/include/Ice/IncomingAsync.h:24: warning: 'virtual 
void Ice::AMDCallback::ice_exception()' was hidden
/opt/ice-3.4.2_64/include/Ice/Locator.h:402: warning:   by 'virtual 
void IceAsync::Ice::AMD_Locator_findObjectById::ice_exception(const 
std::exception&)'
/opt/ice-3.4.2_64/include/Ice/IncomingAsync.h:45: warning: 'virtual 
void IceInternal::IncomingAsync::ice_exception()' was hidden
/opt/ice-3.4.2_64/include/Ice/Locator.h:419: warning:   by 'virtual 
void IceAsync::Ice::AMD_Locator_findAdapterById::ice_exception(const 
std::exception&)'
/opt/ice-3.4.2_64/include/Ice/IncomingAsync.h:24: warning: 'virtual 
void Ice::AMDCallback::ice_exception()' was hidden
/opt/ice-3.4.2_64/include/Ice/Locator.h:419: warning:   by 'virtual 
void IceAsync::Ice::AMD_Locator_findAdapterById::ice_exception(const 
std::exception&)'
/opt/ice-3.4.2_64/include/Ice/IncomingAsync.h:45: warning: 'virtual 
void IceInternal::IncomingAsync::ice_exception()' was hidden
/opt/ice-3.4.2_64/include/Ice/Locator.h:436: warning:   by 'virtual 
void 
IceAsync::Ice::AMD_LocatorRegistry_setAdapterDirectProxy::ice_exception(const 
std::exception&)'
/opt/ice-3.4.2_64/include/Ice/IncomingAsync.h:24: warning: 'virtual 
void Ice::AMDCallback::ice_exception()' was hidden
/opt/ice-3.4.2_64/include/Ice/Locator.h:436: warning:   by 'virtual 
void 
IceAsync::Ice::AMD_LocatorRegistry_setAdapterDirectProxy::ice_exception(const 
std::exception&)'
/opt/ice-3.4.2_64/include/Ice/IncomingAsync.h:45: warning: 'virtual 
void IceInternal::IncomingAsync::ice_exception()' was hidden
/opt/ice-3.4.2_64/include/Ice/Locator.h:453: warning:   by 'virtual 
void 
IceAsync::Ice::AMD_LocatorRegistry_setReplicatedAdapterDirectProxy::ice_exception(const 
std::exception&)'
/opt/ice-3.4.2_64/include/Ice/IncomingAsync.h:24: warning: 'virtual 
void Ice::AMDCallback::ice_exception()' was hidden
/opt/ice-3.4.2_64/include/Ice/Locator.h:453: warning:   by 'virtual 
void 
IceAsync::Ice::AMD_LocatorRegistry_setReplicatedAdapterDirectProxy::ice_exception(const 
std::exception&)'
/opt/ice-3.4.2_64/include/Ice/IncomingAsync.h:45: warning: 'virtual 
void IceInternal::IncomingAsync::ice_exception()' was hidden
/opt/ice-3.4.2_64/include/Ice/Locator.h:470: warning:   by 'virtual 
void 
IceAsync::Ice::AMD_LocatorRegistry_setServerProcessProxy::ice_exception(const 
std::exception&)'
/opt/ice-3.4.2_64/include/Ice/IncomingAsync.h:24: warning: 'virtual 
void Ice::AMDCallback::ice_exception()' was hidden
/opt/ice-3.4.2_64/include/Ice/Locator.h:470: warning:   by 'virtual 
void 
IceAsync::Ice::AMD_LocatorRegistry_setServerProcessProxy::ice_exception(const 
std::exception&)'

Is this a known issue?

Comments

  • benoit
    benoit Rennes, France
    Hi,

    Can you tell us a bit more about the compiler you are using and the flags used to compiler your sources? The name hiding isn't really a problem here as those classes are internal and not called directly. However, we will look at fixing those warnings for the next release.

    Cheers,
    Benoit.