MSVC: fix several compiler warnings

This commit is contained in:
wmayer
2023-09-12 15:46:57 +02:00
committed by wwmayer
parent d793d1c177
commit d9d7bf87ae
11 changed files with 76 additions and 45 deletions

View File

@@ -154,7 +154,7 @@
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label">
<widget class="QLabel" name="label2">
<property name="text">
<string>Offset</string>
</property>
@@ -185,7 +185,7 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<widget class="QLabel" name="label3">
<property name="text">
<string>Occurrences</string>
</property>

View File

@@ -25,6 +25,10 @@
#include <FCConfig.h>
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif
#ifdef _PreComp_
// standard

View File

@@ -21,6 +21,7 @@
***************************************************************************/
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#pragma warning(disable : 4244)
#pragma warning(disable : 4996)
#endif

View File

@@ -614,7 +614,7 @@ bool addConstraintSafely(SketchObject* obj, std::function<void()> constraintaddi
tryAutoRecompute(obj);
return false;
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
Gui::TranslatedUserError(
obj,
QObject::tr("Error"),