Oberon00 / luabind

Luabind is a library that helps you create bindings between C++ and Lua.
http://oberon00.github.io/luabind/
Other
46 stars 13 forks source link

Compile warnings with GCC 4.6.3 on Ubuntu 12.04 #14

Closed rpavlik closed 11 years ago

rpavlik commented 11 years ago

Note that it's entirely possible some of these might be related to merge conflicts. I'm just grabbing a few of the instances of repeated warnings.

[  1%] Building CXX object src/CMakeFiles/luabind.dir/class.cpp.o
In file included from /home/rpavlik/src/luabind/src/class.cpp:25:0:
/home/rpavlik/src/luabind/luabind/class.hpp:207:84: warning: redundant redeclaration of ‘std::string luabind::detail::stack_content_by_name(lua_State*, int)’ in same scope [-Wredundant-decls]
/home/rpavlik/src/luabind/luabind/detail/debug.hpp:35:29: warning: previous declaration of ‘std::string luabind::detail::stack_content_by_name(lua_State*, int)’ [-Wredundant-decls]
[ 19%] Building CXX object test/CMakeFiles/test_main.dir/test_has_get_pointer.cpp.o
/home/rpavlik/src/luabind/test/test_has_get_pointer.cpp:57:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_has_get_pointer.cpp:58:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_has_get_pointer.cpp:59:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_has_get_pointer.cpp:60:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_has_get_pointer.cpp:61:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_has_get_pointer.cpp:62:1: warning: use of old-style cast [-Wold-style-cast]
[ 97%] Building CXX object test/CMakeFiles/test_value_wrapper.dir/test_value_wrapper.cpp.o
/home/rpavlik/src/luabind/test/test_value_wrapper.cpp:53:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_value_wrapper.cpp:54:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_value_wrapper.cpp:55:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_value_wrapper.cpp:57:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_value_wrapper.cpp:58:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_value_wrapper.cpp:59:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_value_wrapper.cpp:60:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_value_wrapper.cpp:61:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_value_wrapper.cpp:62:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_value_wrapper.cpp:64:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_value_wrapper.cpp:65:1: warning: use of old-style cast [-Wold-style-cast]
/home/rpavlik/src/luabind/test/test_value_wrapper.cpp:66:1: warning: use of old-style cast [-Wold-style-cast]
rpavlik commented 11 years ago

Ah, yes, the first one was merge-related: you had handled it already. I've fixed that in my merged branch. So, looks like just the ones in the tests.

Oberon00 commented 11 years ago

I can only point to your old Boost version here, as there aren't any visible casts (new- or old-style) in the mentioned lines (or even files), but they might be used in the implementation of BOOST_MPL_ASSERT.

rpavlik commented 11 years ago

OK, then let's just close it since I fixed the one actual issue.