mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
nxstyle: Fix distinction be source and header file for long lines.
For some unknow reason, long lines were reported as WARNING is header files, but as ERRORS in C source file. There are errors where ever they occur.
This commit is contained in:
committed by
hartmannathan
parent
a3b643fdc1
commit
3b62765edd
+1
-9
@@ -2428,15 +2428,7 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
if (m > g_maxline && !rhcomment)
|
||||
{
|
||||
if (g_file_type == C_SOURCE)
|
||||
{
|
||||
ERROR("Long line found", lineno, m);
|
||||
}
|
||||
else if (g_file_type == C_HEADER)
|
||||
|
||||
{
|
||||
WARN("Long line found", lineno, m);
|
||||
}
|
||||
ERROR("Long line found", lineno, m);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user