diff --git a/src/shared/proparser/proeditormodel.cpp b/src/shared/proparser/proeditormodel.cpp
index f7fa988fc8e6bd9099d39ff5670215fb5b8e08dd..61967cdc8b438f21a07aae064654a02fd17668f0 100644
--- a/src/shared/proparser/proeditormodel.cpp
+++ b/src/shared/proparser/proeditormodel.cpp
@@ -645,6 +645,7 @@ ProBlock *ProEditorModel::proBlock(const QModelIndex &index) const
 
 QString ProEditorModel::expressionToString(ProBlock *block, bool display) const
 {
+    Q_UNUSED(display);
     QString result;
     QList<ProItem*> items = block->items();
     for (int i = 0; i < items.count(); ++i) {