[omniORB] omniidl compiler

Robert Stent bob@cabintech.com
Mon, 24 Jul 2000 09:53:15 -0400


omniORB3 on RedHat Linux 6.1 using egcs-c++-1.1.2-24

I get complaints from g++ after generating the SK.cc file from the idl
file if the
method contains no in/out parameters.  Am I doing something wrong?

partial listing...

// Local call call-back function.
static void
_0RL_lcfn_54f8bcdec8c60e6d_00000000(omniCallDescriptor* cd, omniServant*
svnt)
{
  omniStdCallDesc::void_call* tcd = (omniStdCallDesc::void_call*) cd;
  _impl_echo* impl = (_impl_echo*)
svnt->_ptrToInterface(echo::_PD_repoId);
  impl->echoFunc();
}

generated from

interface echo {
        void echoFunc();
};

Compiler complains because tcd is not used.  I know tcd is used to point
to arg list if args
exist.  Is there some way to suppress this line if no args are passed?

Bob