From 6541efdb9af09a7d0b30f3cdb69291d14816930d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 27 Aug 2021 22:33:03 +0200 Subject: [PATCH] fix selfcheck warning --- lib/astutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/astutils.cpp b/lib/astutils.cpp index 1fad613d1..fb22bb7f8 100644 --- a/lib/astutils.cpp +++ b/lib/astutils.cpp @@ -2834,7 +2834,7 @@ struct FwdAnalysis::Result FwdAnalysis::checkRecursive(const Token *expr, const parent = parent->astParent(); if (parent->str() == "(" && !parent->isCast()) break; - if (parent && isSameExpression(mCpp, false, expr, parent, mLibrary, true, false, nullptr)) { + if (isSameExpression(mCpp, false, expr, parent, mLibrary, true, false, nullptr)) { same = true; if (mWhat == What::ValueFlow) { KnownAndToken v;