mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-02 04:39:01 +00:00
system/critmon: fix warning
critmon.c:269:3: warning: 'runtime' may be used uninitialized in this function [-Wmaybe-uninitialized]
269 | printf("%11s %11s %11s %-16s %-5s %s\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
270 | maxpreemp, maxcrit, maxrun, runtime, entryp->d_name, name);
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
fa26bab6b2
commit
08bfc4e9c7
1 changed files with 2 additions and 0 deletions
|
|
@ -248,12 +248,14 @@ static int critmon_process_directory(FAR struct dirent *entryp)
|
|||
else
|
||||
{
|
||||
maxrun = "None";
|
||||
runtime = "None";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
maxcrit = "None";
|
||||
maxrun = "None";
|
||||
runtime = "None";
|
||||
}
|
||||
|
||||
/* Finally, output the stack info that we gleaned from the procfs */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue