diff --git a/tests/unittests/BackendTestUtils.cpp b/tests/unittests/BackendTestUtils.cpp index c48c12801..eb5b840b9 100644 --- a/tests/unittests/BackendTestUtils.cpp +++ b/tests/unittests/BackendTestUtils.cpp @@ -365,7 +365,7 @@ std::unordered_set cloneFunInsideFun(FunctionTensorPair FTP, // Clone the clone, and then add all the new nodes to the original function. auto *tmpF = cloneF->clone("tmp" + std::to_string(i)); std::unordered_set clonedNodes; - bool foundSaveNode = false; + [[maybe_unused]] bool foundSaveNode = false; for (auto &N : tmpF->getNodes()) { clonedNodes.insert(&N);