[omniORB] Build Problem on HPUX 11.00 with aCC(A.03.25)
Masaaki Sekiya
sekiya@nagoya.ydc.co.jp
Wed, 20 Sep 2000 10:20:50 +0900 (JST)
Hi, Duncan.
> On Thursday 14 September, Masaaki Sekiya wrote:
>
> > Error 439: Exact position unknown; near ["./idlscope.h", line
> > 244]. # Name 'Kind ' was redefined after its use in a class. A
> > previous declaration used "enum Scop e::Kind" ["./idlscope.h", line
> > 119].
>
> I'm certain that this is a compiler bug, but I've changed the type
> name anyway.
I'v already reported the bug to HP.
> > * casting 'CORBA::TypeCode_ptr' -> 'TypeCode_base *'
> > =============
> > Warning 749: "../poamanager.cc", line 294 # The cast from
> > 'omniOrbPOAManager *'
>
> What line did the warning come from? As far as I can see, all of the
> casts to do with TypeCodes are safe, although not necessarily strictly
> type safe.
Sorry, I made a mistake to paste a warning message.
Here are right messages.
* casting 'CORBA::TypeCode_ptr' -> 'TypeCode_base *'
=============
Warning 749: "./typecode.h", line 134 # The cast from 'CORBA::TypeCode *' to 'Ty
peCode_base *' is performed as a 'reinterpret_cast'. This operation is non-porta
ble and potentially unsafe.
return (TypeCode_base*) a;
^^^^^^^^^^^^^^^^
Warning 740: "./typecode.h", line 134 # Unsafe cast between pointers/references
to incomplete classes: casting 'CORBA::TypeCode *' to 'TypeCode_base *'.
return (TypeCode_base*) a;
^
arning 749: "./typecode.h", line 143 # The cast from 'const CORBA::TypeCode *'
to 'const TypeCode_base *' is performed as a 'reinterpret_cast'. This operation
is non-portable and potentially unsafe.
return (const TypeCode_base*)a;
^^^^^^^^^^^^^^^^^^^^^^
Warning 740: "./typecode.h", line 143 # Unsafe cast between pointers/references
to incomplete classes: casting 'const CORBA::TypeCode *' to 'const TypeCode_base
*'.
return (const TypeCode_base*)a;
=============
Masaaki Sekiya(YDC)