mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 14:55:18 +00:00
tools/nxstyle: fix nxstyle check for pointer to function types
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
510154299b
commit
298c372afa
1 changed files with 1 additions and 1 deletions
|
|
@ -2469,7 +2469,7 @@ int main(int argc, char **argv, char **envp)
|
|||
{
|
||||
/* REVISIT: This gives false alarms on syntax like *--ptr */
|
||||
|
||||
if (line[n - 1] != ' ')
|
||||
if (line[n - 1] != ' ' && line[n - 1] != '(')
|
||||
{
|
||||
ERROR("Operator/assignment must be preceded "
|
||||
"with whitespace", lineno, n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue