[omniORB] Warnings from omniORB header files
Duncan Grisby
duncan at grisby.org
Mon Jan 25 17:22:46 GMT 2010
On Mon, 2010-01-25 at 16:53 +0000, Mike Richmond wrote:
> I see the following warnings when compiling against the omniORB 4.1.4
> headers with Visual C++ 8 options "-W4 -Wp64". C4512 is from -W4,
> the others are from -Wp64. I'm happy to squash them at the moment
> with #pragma warning, but it would be nice if they could be addressed
> in a future version.
>
> ...\omniORB_4.1.4\include\omniORB4/stringtypes.h(149) : warning
> C4267 : 'argument' : conversion from 'size_t' to 'int', possible loss
> of data
-Wp64 is warning about potential 64 bit issues. What it's not taking
into account is that when omniORB is compiled on a 64 bit platform, a
whole load of the types are defined differently. This particular warning
isn't actually covered by that, but the vast majority of them are. It's
definitely not possible to construct the headers to be free from
warnings of that kind.
> ...\omniORB_4.1.4\include\omniORB4/stringtypes.h(583) : warning
> C4512 : '_CORBA_String_inout' : assignment operator could not be
> generated
I don't know why the compiler thinks it can't generate an assignment
operatoe here. Does it remove the warning if you define a do-nothing
assignment operator there?
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list