View Issue Details

IDProjectCategoryView StatusLast Update
0002212FreeCADBugpublic2015-09-11 18:02
Reporterjobermayr Assigned To 
Status closedResolutionfixed 
Fixed in Version0.16 
Summary0002212: Commit e744114 (-Wall) introduces build error on openSUSE
Description-Wall includes -Wreturn-type and openSUSE doesn't build packages with such errors:

I: Program returns random data in a function
E: FreeCAD no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/freecad/src/3rdParty/salomesmesh/src/SMESHDS/SMESHDS_GroupOnGeom.cpp:95
E: FreeCAD no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/freecad/src/Mod/Robot/App/kdl_cp/chaindynparam.cpp:105
E: FreeCAD no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/freecad/src/Mod/Robot/App/kdl_cp/chainidsolver_recursive_newton_euler.cpp:82
E: FreeCAD no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/freecad/src/Mod/Robot/App/kdl_cp/chainjnttojacsolver.cpp:46
E: FreeCAD no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/freecad/src/Mod/Robot/App/kdl_cp/joint.cpp:109, 142, 176

Such errors can be fixed with a "return NULL".
TagsNo tags attached.
FreeCAD Information


There are no notes attached to this issue.

Related Changesets

FreeCAD: master e7441149

2015-08-02 22:32:18


Details Diff
+ fix many minor warnings, activate -Wall for gcc Affected Issues
mod - CMakeLists.txt Diff File
mod - src/Base/Unit.cpp Diff File
mod - src/Gui/CommandDoc.cpp Diff File
mod - src/Gui/Document.cpp Diff File
mod - src/Gui/GestureNavigationStyle.cpp Diff File
mod - src/Gui/Quarter/FocusHandler.cpp Diff File
mod - src/Gui/Quarter/ImageReader.cpp Diff File
mod - src/Gui/Quarter/QuarterWidgetP.cpp Diff File
mod - src/Gui/TaskView/TaskView.cpp Diff File
mod - src/Gui/View3DInventorViewer.cpp Diff File
mod - src/Gui/propertyeditor/PropertyItem.cpp Diff File
mod - src/Mod/Mesh/App/Core/Projection.cpp Diff File
mod - src/Mod/Mesh/Gui/ViewProvider.cpp Diff File
mod - src/Mod/Part/App/PrimitiveFeature.cpp Diff File
mod - src/Mod/Part/Gui/SoBrepFaceSet.cpp Diff File
mod - src/Mod/Part/Gui/ViewProviderBoolean.cpp Diff File
mod - src/Mod/Part/Gui/ViewProviderCompound.cpp Diff File
mod - src/Mod/Part/Gui/ViewProviderExt.cpp Diff File
mod - src/Mod/Part/Gui/ViewProviderMirror.cpp Diff File
mod - src/Mod/PartDesign/Gui/ViewProviderTransformed.cpp Diff File

FreeCAD: master 9bceab91

2015-09-02 19:47:34


Details Diff
Robot: Fix last -Wreturn-type warning.

Since getTypeName() returns None for None and default both must be handled the same way in other switches.

After applying following bug will be fixed:
Affected Issues
mod - src/Mod/Robot/App/kdl_cp/joint.cpp Diff File

Issue History

Date Modified Username Field Change
2015-08-16 09:25 jobermayr New Issue
2015-08-17 00:00 yorik Changeset attached => FreeCAD Master master e7441149
2015-09-11 18:01 wmayer Changeset attached => FreeCAD Master master 9bceab91
2015-09-11 18:02 wmayer Status new => closed
2015-09-11 18:02 wmayer Resolution open => fixed
2015-09-11 18:02 wmayer Fixed in Version => 0.16