diff --git a/alib2gui/src/Graphics/Connection/Connection.cpp b/alib2gui/src/Graphics/Connection/Connection.cpp
index a343b2b24fb27dbe6cb1a3850a8a792aece9cc6e..ed5bf977f9cccbdc9882693eb16ef1f6c1374858 100644
--- a/alib2gui/src/Graphics/Connection/Connection.cpp
+++ b/alib2gui/src/Graphics/Connection/Connection.cpp
@@ -106,7 +106,7 @@ void Connection::destroy() {
     ModelBox::disconnect(originModel, targetModel, targetConnectionBox->getSlot());
 
     auto removed = this->originConnectionBox->connections.erase(this);
-    Q_ASSERT(removed > 0);
+    Q_ASSERT(removed > 0); (void) removed;
 
     Q_ASSERT(this->targetConnectionBox->connection == this);
     this->targetConnectionBox->connection = nullptr;