Skip to content

Commit

Permalink
sched: fix warning
Browse files Browse the repository at this point in the history
sched/sched_sysinfo.c:55:19: warning: unused variable 'minfo' [-Wunused-variable]
   55 |   struct mallinfo minfo;
      |                   ^~~~~

Signed-off-by: ligd <[email protected]>
  • Loading branch information
GUIDINGLI committed Oct 11, 2024
1 parent 6e68dde commit af64506
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sched/sched/sched_sysinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ int sysinfo(FAR struct sysinfo *info)
#ifdef CONFIG_MM_PGALLOC
struct pginfo_s pginfo;
#endif
#if defined(MM_KERNEL_USRHEAP_INIT) || defined(CONFIG_MM_KERNEL_HEAP)
struct mallinfo minfo;
#endif

if (info == NULL)
{
Expand Down

0 comments on commit af64506

Please sign in to comment.