summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-12-21 16:03:56 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-12-21 16:51:33 +0200
commita7599b1e601725b18e1bdb996982eb6f00598eb4 (patch)
tree2e5ebd5ec7f0a6a2fefeda8e96c1c5f54b5991a8 /dbaccess
parent445d350c5c2595cb41ef97e2c871c991483dd803 (diff)
Previous fix did not help, have to just ignore the "Unreachable code" warning
Change-Id: Ic62056e2df9a17fd6716ae90e4372dec1d5dd40f
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/inc/genericcontroller.hxx1
-rw-r--r--dbaccess/source/ui/browser/genericcontroller.cxx9
2 files changed, 7 insertions, 3 deletions
diff --git a/dbaccess/inc/genericcontroller.hxx b/dbaccess/inc/genericcontroller.hxx
index 0880138738f5..ddcb323e97ce 100644
--- a/dbaccess/inc/genericcontroller.hxx
+++ b/dbaccess/inc/genericcontroller.hxx
@@ -521,7 +521,6 @@ namespace dbaui
protected:
#ifdef _MSC_VER
- __declspec(noreturn)
OGenericUnoController(); // never implemented
#endif
};
diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx
index 35eb6d359fba..3260f2fed556 100644
--- a/dbaccess/source/ui/browser/genericcontroller.cxx
+++ b/dbaccess/source/ui/browser/genericcontroller.cxx
@@ -209,8 +209,10 @@ OGenericUnoController::OGenericUnoController(const Reference< XMultiServiceFacto
}
#ifdef _MSC_VER
-// -----------------------------------------------------------------------------
-__declspec(noreturn)
+
+#pragma warning(push)
+#pragma warning(disable:4702)
+
OGenericUnoController::OGenericUnoController()
:OGenericUnoController_Base( getMutex() )
,m_pView(NULL)
@@ -230,6 +232,9 @@ OGenericUnoController::OGenericUnoController()
// we simply abort here.
abort();
}
+
+#pragma warning(pop)
+
#endif
// -----------------------------------------------------------------------------