Search found 4839 matches
- Sun Sep 10, 2023 12:51 pm
- Forum: Developers corner
- Topic: [fixed] [Base] DLL interface problems with some Base:: types
- Replies: 7
- Views: 2415
[fixed] [Base] DLL interface problems with some Base:: types
I get with today's master on a compilation with MSVC from scratch these warnings about some Base:: types. I get them first when I comple the target "FreeCADGui", not when I compile the target "FreeCADBase": 1>D:\FreeCADGit\src\Base\Type.h(136,45): warning C4251: 'Base::Type::type...
- Sun Sep 10, 2023 12:47 pm
- Forum: Install / Compile
- Topic: [Gui] several type truncyation warnings
- Replies: 3
- Views: 492
[Gui] several type truncyation warnings
I get with today's master on a compilation with MSVC from scratch these truncation warnings: 1>D:\FreeCADGit\src\Gui\View3DInventorViewer.cpp(1336,38): warning C4305: 'argument': truncation from 'double' to 'float' and 1>D:\FreeCADGit\src\Gui\MainWindow.cpp(1737,40): warning C4305: 'initializing': t...
- Sun Sep 10, 2023 12:44 pm
- Forum: Developers corner
- Topic: [fixed] [Gui] many compiler trunctation warnings for NaviCube
- Replies: 4
- Views: 813
[fixed] [Gui] many compiler trunctation warnings for NaviCube
I get with today's master on a compilation with MSVC from scratch this warning for NaviCube.cpp: 1>D:\FreeCADGit\src\Gui\NaviCube.cpp(173,24): warning C4305: 'initializing': truncation from 'double' to 'float' 1>D:\FreeCADGit\src\Gui\NaviCube.cpp(174,23): warning C4305: 'initializing': truncation fr...
- Sun Sep 10, 2023 12:41 pm
- Forum: Install / Compile
- Topic: [fixed] [Gui] compiler warnings with SoFCBackgroundGradient.cpp
- Replies: 7
- Views: 2126
[fixed] [Gui] compiler warnings with SoFCBackgroundGradient.cpp
I get with today's master on a compilation from scratch this warning for SoFCBackgroundGradient.cpp: 1>D:\FreeCADGit\src\Gui\SoFCBackgroundGradient.cpp(42,1): warning C4305: '+=': truncation from 'double' to 'GLfloat' 1>D:\FreeCADGit\src\Gui\SoFCBackgroundGradient.cpp(47,1): warning C4305: '+=': tru...
- Sun Sep 10, 2023 12:35 pm
- Forum: Developers corner
- Topic: [Sketcher] dozen of compiler warnings with planeCGS
- Replies: 4
- Views: 1298
[Sketcher] dozen of compiler warnings with planeCGS
With a fresh compilation of today's master I get dozens of compiler warnings with the planeCGS component of Sketcher: 3>D:\FreeCADGit\src\Mod\Sketcher\App\planegcs\Constraints.h(117,18): warning C4251: 'GCS::Constraint::origpvec': class 'std::vector<double *,std::allocator<double *>>' needs to have ...
- Sun Sep 10, 2023 12:05 pm
- Forum: Install / Compile
- Topic: [Part] compiling handles ImportExportSettings.cpp three times
- Replies: 3
- Views: 548
[Part] compiling handles ImportExportSettings.cpp three times
When making a fresh compilation I noticed (since at least a year) that the MSVC compiler treats the file ImportExportSettings.cpp three times. So I get in the compilation logs: 1>FaceMaker.cpp 1>FaceMakerCheese.cpp 1>FaceMakerBullseye.cpp 1>mocs_compilation_Release.cpp 1>ImportExportSettings.cpp 1>I...
- Sun Jun 11, 2023 11:01 pm
- Forum: Developers corner
- Topic: [MSVC warnings] - part 3 Sketcher
- Replies: 4
- Views: 1197
Re: [MSVC warnings] - part 3 Sketcher
https://github.com/FreeCAD/FreeCAD/pull/9759 Many thanks! However, I see some Lint warnings worth a look, like e.g. unknown class name 'DrawSketchHandler'; did you mean 'DrawSketchHandlerArc'? Can you please have a look at them too?: https://github.com/FreeCAD/FreeCAD/pull/9759/commits/3a1e921f27b4...
- Fri Jun 09, 2023 3:06 pm
- Forum: Developers corner
- Topic: [MSVC] warnings part 5 - FMT Tests
- Replies: 0
- Views: 1879
[MSVC] warnings part 5 - FMT Tests
With current master I get these warnings when compiling the FMT tests build target: 73>D:\FreeCADGit\tests\src\App\StringHasher.cpp(1179,46): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data 73>D:\FreeCADGit\tests\src\App\StringHasher.cpp(1180,42): warning C4267: '...
- Fri Jun 09, 2023 3:03 pm
- Forum: Developers corner
- Topic: [MSVC] warnings part 4 - Gui
- Replies: 1
- Views: 1121
Re: [MSVC] warnings part 4 - Gui
Now, after upgrading MSVC to version 15.6.2, I get 2 more warnings: 81>D:\FreeCADGit\src\Gui\SoFCBackgroundGradient.cpp(42,1): warning C4305: '+=': truncation from 'double' to 'GLfloat' 81>D:\FreeCADGit\src\Gui\SoFCBackgroundGradient.cpp(47,1): warning C4305: '+=': truncation from 'double' to 'GLflo...
- Tue Jun 06, 2023 4:08 pm
- Forum: Developers corner
- Topic: [MSVC warnings] - part 1 NaviCube
- Replies: 3
- Views: 909
Re: [MSVC warnings] - part 1 NaviCube
For the instances where it's about the use of M_PI we would have to define pi ourselves as float instead of double if we really want to silence this Why don't we keep them a double like we do in all other cases where we use PI? ------------- While we are at it, the NaviCube arrows have now a surrou...