mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08: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:
committed by
Gustavo Henrique Nihei
parent
510154299b
commit
298c372afa
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user