[omniORB] strange omniidl c++ result
    Rene Jager 
    renej_frog at users.sourceforge.net
       
    Sat Jul 10 00:26:32 BST 2004
    
    
  
The following IDL:
// ---------------------------
module Test
{
    typedef double Array[3];
};
 
module Test2
{
    typedef Test::Array Array2;
};
// ---------------------------
Generates c++ code that gives the following warning:
Test.hh:120: warning: `Array2_slice* Test2::Array2_alloc()' defined but not
   used
Test.hh:121: warning: `Array2_slice* Test2::Array2_dup(const Array2_slice*)'
   defined but not used
Test.hh:122: warning: `void Test2::Array2_copy(Array2_slice*, const
   Array2_slice*)' defined but not used
Test.hh:123: warning: `void Test2::Array2_free(Array2_slice*)' defined but not
   used
This because in the generated lines:
  static Array2_slice* Array2_alloc() { return Test::Array_alloc(); }
  static Array2_slice* Array2_dup(const Array2_slice* p) { return Test::Array_dup(p); }
  static void Array2_copy( Array2_slice* _to, const Array2_slice* _from ) { Test::Array_copy(_to, _from); }
  static void Array2_free( Array2_slice* p) { Test::Array_free(p); }
                                                                                                                                                                               
"static" should be "inline" IMHO
renej
    
    
More information about the omniORB-list
mailing list