[omniORB] Patch to remove warnings when compiling DynSK files

Matej Kenda matej.kenda at hermes.si
Thu Jul 21 11:30:42 BST 2005


Hi Duncan,

I have compiled an application that uses CORBA::Any. gcc 3.3.4 emitted a
lot of warnings if an option -Wcast-qual is used (the default for our
projects).

.linux.ia32/i_typesDynSK.cc: In function `Boolean operator>>=(const
   CORBA::Any&, const i_MediumPos_t*&)':
.linux.ia32/i_typesDynSK.cc:1600: warning: cast from `const i_MediumPos_t*' to
   `void*' discards qualifiers from pointer target type

I have made some trivial modification of two header files and the
dynskel template to remove those warnings. 

The changes are pretty straightforward. If you think that the changes
are useful in general, please apply the patch to the repository.

Best regards,

Matej

-- 
Matej Kenda,
HERMES SoftLab d.d. (www.hermes-softlab.com)
Slovenia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dyn_casts.diff
Type: text/x-patch
Size: 19278 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20050721/4c09c833/dyn_casts-0001.bin


More information about the omniORB-list mailing list