From 4686294d7e284fe1920621b8879e77b15ca2856c Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Fri, 18 May 2012 14:00:10 -0400 Subject: [PATCH] Fix compiler warning about empty for body --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 4c9f7e75f..922c3f504 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -595,7 +595,7 @@ void CheckOther::checkSizeofForPointerSize() // Jump to the next sizeof token in the function and in the parameter // This is to allow generic operations with sizeof - for (; tokVar && tokVar->str() != ")" && tokVar->str() != "," && tokVar->str() != "sizeof"; tokVar = tokVar->next()); + for (; tokVar && tokVar->str() != ")" && tokVar->str() != "," && tokVar->str() != "sizeof"; tokVar = tokVar->next()) {} // Now check for the sizeof usage. Once here, everything using sizeof(varid) // looks suspicious