Comment 2 for bug 975852

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Try with --enable=all :)

$ cppcheck --enable=all src/scripting/lua_map.cc
Checking src/scripting/lua_map.cc...
[src/scripting/lua_map.cc:337]: (style) Statements following return, break, continue, goto or throw will never be executed.
snip...

PS. Completely unrelated, but I've seen that cppcheck report 1.59 report a lot more unused functions in this file among others. Should probably be investigated to rule out false postives, though since I don't know exactly how this works I thought I'd ask: will some of the lua-related functions be only called from lua-scripts and not the c++ code so that they would show up as dead code?