From bc32ccc8942d4e0f0a23e7c12c3267c06e24e203 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Sat, 29 Oct 2016 21:41:55 +0200 Subject: [PATCH] CheckUninitVar::isFunctionParUsage: Avoid implicit conversion from type bool to int. --- lib/checkuninitvar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp index 6d5fc13d5..08721f6f8 100644 --- a/lib/checkuninitvar.cpp +++ b/lib/checkuninitvar.cpp @@ -1057,7 +1057,7 @@ int CheckUninitVar::isFunctionParUsage(const Token *vartok, bool pointer, Alloc } else { const bool isnullbad = _settings->library.isnullargbad(start->previous(), argumentNumber + 1); if (pointer && !address && isnullbad && alloc == NO_ALLOC) - return true; + return 1; const bool isuninitbad = _settings->library.isuninitargbad(start->previous(), argumentNumber + 1); if (alloc != NO_ALLOC) return isnullbad && isuninitbad;