Closed gilbertoca closed 8 years ago
On ubuntu 14.04, it is a warning only. gcc compiler version is 4.8. BrowserNode.h: In member function 'virtual QVariant BrowserNode::data(int, int) const': BrowserNode.h:71:55: warning: no return statement in function returning non-void [-Wreturn-type] virtual QVariant data(int column, int role) const{}; It seems openSUSE doesn't build packages with such errors (http://www.freecadweb.org/tracker/view.php?id=2212&history=1).
Shouldn't this(code duplication) one be a good candidate to refactoring?
gilberto.andrade@BEM-INF007:~/tmp/douml> find -iname hhbox.cpp
./genplugouts/sm/hhbox.cpp
./genplugouts/uml_projection/hhbox.cpp
./genplugouts/xmi/hhbox.cpp
./genplugouts/CppUtilities/hhbox.cpp
./genplugouts/gpro/hhbox.cpp
./genplugouts/Xmi2Generator/hhbox.cpp
./genplugouts/GlobalChange/hhbox.cpp
./genplugouts/FileControl/hhbox.cpp
./src/ui/hhbox.cpp
gilberto.andrade@BEM-INF007:~/tmp/douml> diff ./genplugouts/sm/hhbox.cpp ./genplugouts/uml_projection/hhbox.cpp
gilberto.andrade@BEM-INF007:~/tmp/douml> diff ./genplugouts/sm/hhbox.cpp ./genplugouts/xmi/hhbox.cpp
gilberto.andrade@BEM-INF007:~/tmp/douml> diff ./genplugouts/sm/hhbox.cpp ./genplugouts/CppUtilities/hhbox.cpp
gilberto.andrade@BEM-INF007:~/tmp/douml> diff ./genplugouts/sm/hhbox.cpp ./genplugouts/gpro/hhbox.cpp
gilberto.andrade@BEM-INF007:~/tmp/douml> diff ./genplugouts/sm/hhbox.cpp ./genplugouts/Xmi2Generator/hhbox.cpp
gilberto.andrade@BEM-INF007:~/tmp/douml> diff ./genplugouts/sm/hhbox.cpp ./genplugouts/GlobalChange/hhbox.cpp
gilberto.andrade@BEM-INF007:~/tmp/douml> diff ./genplugouts/sm/hhbox.cpp ./genplugouts/FileControl/hhbox.cpp
gilberto.andrade@BEM-INF007:~/tmp/douml> diff ./genplugouts/sm/hhbox.cpp ./src/ui/hhbox.cpp
23a24
> return 0;
gilberto.andrade@BEM-INF007:~/tmp/douml>
The whole genplugouts architecture needs a good refactoring, there is a lot of code duplication. I'd suggest opening another issue for this specific problem.
None of the functions have a default: value or return something. So, for this one I think it should be simply a void function.
Those aren't a problem, its an easy fix. I was talking about creating an issue for plugout structure refactoring. I'm building DoUML to check if there's anywhere else with this problem before pushing a commit.
Hi, I'm trying to build DoUML int openSUSE Build Service. But build failed with :
And shows some warnings as well:
Can someone help?