[Lua] compiler warnings

Hi (Markus),

when I try to compile OCL I get the following warnings which are related to LUA:

/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:
In function ‘int __Operation_send(lua_State*)’:
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:1027:
warning: unused variable ‘shc’
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:
In function ‘int Service_getOperation(lua_State*)’:
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:1166:
warning: unused variable ‘i’
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:1166:
warning: unused variable ‘argc’
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:
In function ‘int ServiceRequester_getRequestName(lua_State*)’:
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:1243:
warning: unused variable ‘name’
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:
In function ‘int TaskContext_getPeer(lua_State*)’:
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:1437:
warning: unused variable ‘tc’
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:
In function ‘int TaskContext_getProperties(lua_State*)’:
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:1637:
warning: unused variable ‘pb’
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:
In function ‘int TaskContext_provides(lua_State*)’:
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:1706:
warning: unused variable ‘subsrv’
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:
In function ‘int __SendHandle_collect(lua_State*, bool)’:
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:1851:
warning: comparison between signed and unsigned integer expressions
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:1864:
warning: comparison between signed and unsigned integer expressions
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:
In function ‘int __TaskContext_send(lua_State*)’:
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:1907:
warning: unused variable ‘shc’
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:
In function ‘int EEHook_new(lua_State*)’:
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:2079:
warning: unused variable ‘argc’
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:
In function ‘int getTC(lua_State*)’:
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:2182:
warning: unused variable ‘tc’
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:
In function ‘int Port_info(lua_State*)’:
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:737:
warning: ‘pi’ may be used uninitialized in this function
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:735:
warning: ‘port_type’ may be used uninitialized in this function
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:
At global scope:
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:656:
warning: ‘int Property_gc(lua_State*)’ defined but not used
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:818:
warning: ‘int InputPort_gc(lua_State*)’ defined but not used
/home/s0160113/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/ocl/lua/rtt.cpp:900:
warning: ‘int OutputPort_gc(lua_State*)’ defined but not used

Most of them can be ignored i think, but I just wanted to let you know.

Ruben

[Lua] compiler warnings

On Wed, Dec 15, 2010 at 12:58:53PM +0100, Ruben Smits wrote:
> Hi (Markus),
>
> when I try to compile OCL I get the following warnings which are related to LUA:
...

> Most of them can be ignored i think, but I just wanted to let you know.

Thanks, Peter merged a fix for these ocl/toolchain-2.2 this morning.

Markus