[MSVC] warnings part 4 - Gui

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

[MSVC] warnings part 4 - Gui

Post by uwestoehr »

With current master I get these warnings:

Code: Select all

22>D:\FreeCADGit\src\Gui\Widgets.cpp(1595,36): warning C4101: 'e': unreferenced local variable
22>D:\FreeCADGit\src\Gui\Widgets.cpp(1662,36): warning C4101: 'e': unreferenced local variable
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [MSVC] warnings part 4 - Gui

Post by uwestoehr »

Now, after upgrading MSVC to version 15.6.2, I get 2 more warnings:

Code: Select all

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 'GLfloat'
Post Reply