Commit Graph

5904 Commits

Author SHA1 Message Date
wmayer
13fa571c41 + fix 'switch' warnings 2015-08-29 22:26:48 +02:00
wmayer
f7eb1ef924 + fix various warnings 2015-08-29 22:12:33 +02:00
wmayer
cb16fec6bb + fix various warnings 2015-08-29 22:05:09 +02:00
wmayer
1a12d109e9 + fix strict-aliasing warnings 2015-08-29 19:48:08 +02:00
wmayer
023de9b0f8 + fix author notice 2015-08-29 18:49:16 +02:00
Alexander Golubev
4fcbff9d34 Mod/Complete: suppress a minor warning
The warning was dedicated to using of char as an array index.
2015-08-29 18:36:04 +02:00
Alexander Golubev
2d6e82fb2c Mod/Robot: fix yet another warning (potentialy harmful)
Warning was -Woverloaded-virtual
2015-08-29 18:36:03 +02:00
Alexander Golubev
d2176be234 Mod/Spreadsheet: fix yet another warning (potentialy harmful)
Warning was -Woverloaded-virtual
2015-08-29 18:36:02 +02:00
Alexander Golubev
a8634f09fc 3rdParty/salomesmesh: suppress several small warnings
Warnings was about a struct declared as type and as usual added several
additional brackets.
2015-08-29 18:36:01 +02:00
Alexander Golubev
c3dfc7e30c 3rdParty/salomesmesh: fix a couple error-prone warnings
The Warnings was about hiding bases class RemoveElement() and
RemoveFreeElement() virtual methodes which may caused calling wrong
function by bases class pointer.
2015-08-29 18:36:01 +02:00
Alexander Golubev
cf652c8410 Mod/Mesh: suppress bunch of warnings on C++11 usage
Warnings was like:
src/Mod/Mesh/App/WildMagic4/Wm4Vector4.cpp|21 col 49| warning: first declaration of static data member specialization of 'ZERO' outside namespace 'Wm4' is a C++11 extension [-Wc++11-extensions]
2015-08-29 18:36:00 +02:00
Alexander Golubev
de2f8a26b2 Mod/Spreadsheet: suppress warnings
Warnings was:
src/Mod/Spreadsheet/App/Expression.cpp|788 col 20| warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
2015-08-29 18:35:59 +02:00
Alexander Golubev
bbbefaf188 Mod/Sketcher: suppress warning
Warning was:
src/Mod/Sketcher/Gui/CommandConstraints.cpp|1031 col 28| warning: '&&' within '||' [-Wlogical-op-parentheses]
2015-08-29 18:35:58 +02:00
Alexander Golubev
cd9488daf7 Mod/Sketcher: add missing brackets in conditions
Warning was:
src/Mod/Sketcher/Gui/CommandConstraints.cpp|131 col 99| warning: '&&' within '||' [-Wlogical-op-parentheses]
2015-08-29 18:35:58 +02:00
Alexander Golubev
95f0decaa5 Mod/Robot: fix missing return statement
Warning was:
src/Mod/Robot/App/kdl_cp/chainjnttojacsolver.cpp|46 col 5| warning: control may reach end of non-void function [-Wreturn-type]
2015-08-29 18:35:57 +02:00
Alexander Golubev
cd0ae20ef5 Mod/Robot: fix some spaces and a couple of warnings
Warnings wsa:
src/Mod/Robot/App/kdl_cp/chaindynparam.cpp|105 col 5| warning: control may reach end of non-void function [-Wreturn-type]
src/Mod/Robot/App/kdl_cp/chainidsolver_recursive_newton_euler.cpp|82 col 5| warning: control may reach end of non-void function [-Wreturn-type]
2015-08-29 18:35:56 +02:00
Alexander Golubev
efb08237ac Mod/Robot: fix spacing and add a couple of FIXME's
It's to be considered to delete the class ChainIkSolverVel_pinv_nso:
it seems it's not used anythere and unmantained/unfinished for many years.
2015-08-29 18:35:55 +02:00
Alexander Golubev
4326c9657e Gui: fix constructor arguments due to prototype change
Warning message was:
src/Gui/DownloadManager.cpp|295 col 54| warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
2015-08-29 18:35:55 +02:00
Alexander Golubev
80941aa0e0 Gui & Mod/Sketcher: use fabs() instead abs()
Warnings was like:
src/Mod/Sketcher/Gui/DrawSketchHandler.cpp|350 col 28| warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
Also see:
http://forum.freecadweb.org/viewtopic.php?t=10920
http://forum.freecadweb.org/viewtopic.php?f=10&t=5258
2015-08-29 18:35:54 +02:00
Alexander Golubev
774dac17ac salomesmesh: suppress several warnings
Warning was like:
src/3rdParty/salomesmesh/src/SMESHDS/SMESHDS_Mesh.cpp|1028 col 5| warning: add explicit braces to avoid dangling else [-Wdangling-else]
src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp|7377 col 27| warning: '&&' within '||' [-Wlogical-op-parentheses]
2015-08-29 18:35:53 +02:00
Alexander Golubev
b714b8f4ad salomsmesh: fix more bad conditions
warning was:
src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Penta_3D.cpp|832 col 9| warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
2015-08-29 18:35:52 +02:00
Alexander Golubev
a48d05e2bf salomesmesh: fix an error because of bad priorities in logial operators 2015-08-29 18:35:52 +02:00
Alexander Golubev
75ce52f6b8 salomesmesh: fix broken conditions
Warnings was:
src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp|617 col 19| warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
||   bool isAlgo = ( !anHyp->GetType() == SMESHDS_Hypothesis::PARAM_ALGO );
||                   ^                 ~~
src/3rdParty/salomesmesh/src/Controls/SMESH_Controls.cpp|2165 col 31| warning: '&&' within '||' [-Wlogical-op-parentheses]
||       if ( !aMinStr.IsEmpty() && !aMinStr.IsIntegerValue() ||
2015-08-29 18:35:51 +02:00
Alexander Golubev
09c7179389 salomesmesh: fix function missing return statement
3rdParty/salomesmesh/src/SMESHDS/SMESHDS_GroupOnGeom.cpp|95 col 3| warning: control may reach end of non-void function [-Wreturn-type]
||   }
2015-08-29 18:35:50 +02:00
Alexander Golubev
5aa4679847 salomesmesh: fix tests in conditions
Lots of warnings like:
src/3rdParty/salomesmesh/src/SMESHDS/SMESHDS_Command.cpp|57 col 6| warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses]
||         if (!myType == SMESHDS_AddNode)
||

Most of them resulted in conditions being always false.
2015-08-29 18:35:50 +02:00
Alexander Golubev
f5cd28fc53 Pivy: suppress warning
Warning was:
src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp|2303 col 31| warning:
'&&' within '||' [-Wlogical-op-parentheses]
||       !hasConstructionFaces() && elem->GetType() == SMDSAbs_Face ||
||       ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2015-08-29 18:35:49 +02:00
Alexander Golubev
4b992c27bb Pivy: fix several warnings
Warnings like:
    warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds]

All was due to small defined size of the onstack array.
2015-08-29 18:35:48 +02:00
Alexander Golubev
554d8f4078 Pivy: Fix a compiller warning with wrong check
Warning was:
src/3rdParty/Pivy-0.5/coin_wrap.cpp|244969 col 15| warning: comparison of function 'time' not equal to a null pointer is always true [-Wtautological-pointer-compare]
||           if (time != NULL) {
||               ^~~~    ~~~~

This one supposed to be a copy-paste typo.
2015-08-29 18:35:46 +02:00
wmayer
6a18530a8d + if FreeCAD is not running in Gui mode do not replace Python std. output 2015-08-29 17:22:40 +02:00
wmayer
c3656ad646 + replace assert() to avoid crash 2015-08-29 16:34:36 +02:00
Yorik van Havre
f70d5be2b7 Arch: Fixed DAE export - fixes #2219 2015-08-28 17:46:52 -03:00
Przemo Firszt
daa024cc79 Material: Add missing Density fields using Tools
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:59:02 +01:00
Przemo Firszt
fdb782c5c7 Materials: Add Materials.ods file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:59:02 +01:00
Przemo Firszt
729c1b4a73 Materials: Add Tools for FCMat<->ods conversion
Testing and proofreading by sgrogan

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:58:51 +01:00
Przemo Firszt
285ad9dbfa Materials: Update Readme.txt
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:58:31 +01:00
Przemo Firszt
84a88c4d2f Material: Add TEMPLATE.FCMat file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:58:31 +01:00
Przemo Firszt
d2c7366f9a Material: Clean material files
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:58:31 +01:00
wmayer
8ec1bab139 + fixes #0002229: some ttf fonts make Draft.makeShapeString crash 2015-08-26 22:56:37 +02:00
wmayer
a801fb20b8 + disable SVG and IDTF export for 3d view 2015-08-26 22:11:53 +02:00
wmayer
99fc24ea07 + fixes #0002221 2015-08-26 19:24:00 +02:00
wmayer
84a65a53ef + remove method View3DInventor::dumpSelection 2015-08-26 18:58:59 +02:00
wmayer
04cb2d4411 + code refactoring for VRML and Inventor export 2015-08-26 18:55:14 +02:00
wmayer
a7a1edbc64 + restore old axonometric behaviour 2015-08-26 13:44:01 +02:00
Yorik van Havre
d13179b63f Arch: IFC exporter now exports cloned Arch objects with shared geometry 2015-08-25 22:11:40 -03:00
wmayer
27dc80c846 + support of checkable commands 2015-08-25 18:01:37 +02:00
wmayer
1e745a6a6f + improve formatting 2015-08-25 15:11:42 +02:00
Yorik van Havre
70550739b6 Arch: IFC importer now treats objects with shared shapes as clones 2015-08-21 11:42:42 -03:00
wmayer
60707fc256 + algorithm to split a segment from the mesh 2015-08-20 08:49:22 +02:00
Przemo Firszt
15d7369de8 FEM: Force consistent DENSITY formatting
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-18 13:44:28 +01:00
Przemo Firszt
5e3dc0c2c9 Tests, FEM: Fix inp file writing test
It's a compare line-by-line without comment lines now instead of
previously used md5 sum comparison.

inp pre filtering method suggested by Far-Zer
File location fixes by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-18 13:44:28 +01:00