changeset 719:b8bf2900a478

Avoid a compiler warning
author Chris Cannam
date Thu, 21 Nov 2019 14:28:47 +0000
parents 464fed3096f5
children 55f317633b93
files framework/Document.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/framework/Document.cpp	Thu Oct 31 11:28:35 2019 +0000
+++ b/framework/Document.cpp	Thu Nov 21 14:28:47 2019 +0000
@@ -777,6 +777,12 @@
     // 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 "