Finetuning false positive

This commit is contained in:
Johanne Schock 2020-03-08 22:37:39 +01:00 committed by patacongo
parent fbe65a2d7d
commit 5e5b6c2069

View File

@ -941,15 +941,14 @@ int main(int argc, char **argv, char **envp)
ncomment++;
}
if (!strncmp(&line[ii], "define", 6))
rhcomment = n;
if (!strncmp(&line[ii], "define", 6)
&& prevrhcmt != 0 && n != prevrhcmt)
{
rhcomment = n;
if (prevrhcmt != 0 && n != prevrhcmt)
{
rhcomment = prevrhcmt;
WARN("Wrong column position of comment right of code",
lineno, n);
}
rhcomment = prevrhcmt;
WARN("Wrong column position of comment right of code",
lineno, n);
}
}
}