From d33e86a4be1fc33c1742bfc45e61a2f9f87d2d71 Mon Sep 17 00:00:00 2001
From: Jochen Becher <jochen_becher@gmx.de>
Date: Wed, 6 Jan 2016 13:05:14 +0100
Subject: [PATCH] ModelEditor: fix warnings from MSVC compiler

Change-Id: I4fe87d071fafa16ef2beaee2559dc96d0a10c4e0
Reviewed-by: hjk <hjk@theqtcompany.com>
---
 .../modeling/qmt/diagram_scene/items/objectitem.cpp         | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/libs/3rdparty/modeling/qmt/diagram_scene/items/objectitem.cpp b/src/libs/3rdparty/modeling/qmt/diagram_scene/items/objectitem.cpp
index 4be72c68a49..0018ee3a45a 100644
--- a/src/libs/3rdparty/modeling/qmt/diagram_scene/items/objectitem.cpp
+++ b/src/libs/3rdparty/modeling/qmt/diagram_scene/items/objectitem.cpp
@@ -223,6 +223,9 @@ ILatchable::Action ObjectItem::horizontalLatchAction() const
     case RectangularSelectionItem::HandleNone:
         return Move;
     }
+    // avoid warning from MSVC compiler
+    QMT_CHECK(false);
+    return Move;
 }
 
 ILatchable::Action ObjectItem::verticalLatchAction() const
@@ -242,6 +245,9 @@ ILatchable::Action ObjectItem::verticalLatchAction() const
     case RectangularSelectionItem::HandleNone:
         return Move;
     }
+    // avoid warning from MSVC compiler
+    QMT_CHECK(false);
+    return Move;
 }
 
 QList<ILatchable::Latch> ObjectItem::horizontalLatches(ILatchable::Action action, bool grabbedItem) const
-- 
GitLab