MSVC: fix several compiler warnings
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -25,6 +25,10 @@
|
||||
|
||||
#include <FCConfig.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4251)
|
||||
#endif
|
||||
|
||||
#ifdef _PreComp_
|
||||
|
||||
// standard
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4251)
|
||||
#pragma warning(disable : 4244)
|
||||
#pragma warning(disable : 4996)
|
||||
#endif
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user