tools/nxstyle.c: Eliminate false positive 'Invalid character after asterisk in comment block'.
This commit is contained in:
parent
a450b85dc8
commit
a9ef2b4208
@ -97,6 +97,7 @@ static const struct file_operations g_batteryops =
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: bat_charger_open
|
||||
*
|
||||
|
@ -97,6 +97,7 @@ static const struct file_operations g_batteryops =
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: bat_gauge_open
|
||||
*
|
||||
|
@ -1659,9 +1659,10 @@ int main(int argc, char **argv, char **envp)
|
||||
lineno, indent);
|
||||
}
|
||||
|
||||
if (line[indent+1] != ' ' &&
|
||||
line[indent+1] != '\n' &&
|
||||
line[indent+1] != '/')
|
||||
if (line[indent + 1] != ' ' &&
|
||||
line[indent + 1] != '*' &&
|
||||
line[indent + 1] != '\n' &&
|
||||
line[indent + 1] != '/')
|
||||
{
|
||||
fprintf(stderr,
|
||||
"Invalid character after asterisk in comment block at line %d:%d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user