summaryrefslogtreecommitdiff
path: root/svapp/framework/Document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'svapp/framework/Document.cpp')
-rw-r--r--svapp/framework/Document.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/svapp/framework/Document.cpp b/svapp/framework/Document.cpp
index d952a8c..8055e6e 100644
--- a/svapp/framework/Document.cpp
+++ b/svapp/framework/Document.cpp
@@ -777,6 +777,12 @@ Document::releaseModel(ModelId modelId)
// borrowed-pointer mechanism will at least prevent memory errors,
// although the other code will have to stop whatever it's doing.
+// "warning: expression with side effects will be evaluated despite
+// being used as an operand to 'typeid'"
+#ifdef __clang__
+#pragma clang diagnostic ignored "-Wpotentially-evaluated-expression"
+#endif
+
if (auto model = ModelById::get(modelId)) {
SVCERR << "Document::releaseModel(" << modelId << "), name "
<< model->objectName() << ", type "