[omniORB] VC6.0 gives warning C4097
jon.kristensen@kongsberg-simrad.com
jon.kristensen@kongsberg-simrad.com
Thu, 24 Jan 2002 10:47:51 +0100
Hi,
I am now trying omniORB 4.0, and when compiling with warning level 4 and
above, I get a huge amount of warnings like:
d:\omni\include\omniorb4\seqtemplatedecls.h(602) : warning C4097:
typedef-name 'Base_T_seq' used as synonym for class-name '
_CORBA_Unbounded_Sequence<short>'
d:\omni\include\omniorb4\seqtemplatedecls.h(598) : while compiling
class-template member function '__thiscall
_CORBA_Unbounded_Sequence_w_FixSizeElement<short,2,2>::
_CORBA_Unbounded_Sequence_w_FixSizeElement<short,2,2>(unsigned
long,unsigned long,short *,bool)'
d:\omni\include\omnithread.h(622) : warning C4511: 'omni_thread' : copy constructor could not be generated
d:\omni\include\omnithread.h(364) : see declaration of 'omni_thread'
d:\omni\include\omnithread.h(622) : warning C4512: 'omni_thread' : assignment operator could not be generated
d:\omni\include\omnithread.h(364) : see declaration of 'omni_thread'
d:\omni\include\omnithread.h(558) : warning C4100: 'arg' : unreferenced formal parameter
d:\omni\include\omnithread.h(559) : warning C4100: 'arg' : unreferenced formal parameter
about 13700 warnings total for my project at warning level 4.
They all dissapar at warning level 3, but so do a lot of other important
warnings.
I know that Microsoft is not standard compliant, and may generate improper
warnings, but I also checked their doc for warning C4097, and there
they claim that your code violates the standard.
To be fair, I aslo have to mention that the version of STL delivered with
VC60 also gives a lot of warnigs at level 4.
What is the omniORB philosophy on this?
Regards,
Jon
--------------
Jon Kristensen
Principal Engineer, SW Embedded Systems
Kongsberg Simrad AS, Horten, Norway
phone: +47 33 02 39 34
fax: +47 33 04 76 19
email: jon.kristensen@kongsberg-simrad.com