nuttx/sched
Nathan Hartman 930a446a7b sched/init/nx_start.c: Reinstate logic to remove compiler warning
Revert a portion of eca7059785 that
causes compiler warnings about unused variables if nx_start() is not
initializing any of the user-mode heap, kernel-mode heap, or page
allocator:

    init/nx_start.c: In function 'nx_start':
    init/nx_start.c:552:14: warning: unused variable 'heap_size'
    [-Wunused-variable]
           size_t heap_size;
                  ^~~~~~~~~
    init/nx_start.c:551:17: warning: unused variable 'heap_start'
    [-Wunused-variable]
           FAR void *heap_start;
                     ^~~~~~~~~~

See dev@nuttx.apache.org mailing list discussion "New unused variables
warning in nx_start()" starting 6 May 2020, archived here:

https://lists.apache.org/thread.html/r3900727e6a06f4445d6eb881d065119ba6647daab89600c3d45d1424%40%3Cdev.nuttx.apache.org%3E

sched/init/nx_start.c:

    * If none of MM_KERNEL_USRHEAP_INIT, CONFIG_MM_KERNEL_HEAP, or
      CONFIG_MM_PGALLOC are defined, the variables heap_start and
      heap_size were declared but never used.

    * This change reinstates wrapping the block with a preprocessor
      conditional to prevent the variables being declared if they will
      not be used. This preprocessor condition was removed in the
      above-mentioned commit.
2020-05-07 13:49:15 -06:00
..
clock Make compare_timespec public so timer driver could reuse it 2020-02-15 07:17:07 -06:00
environ global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
errno errno: Rename get_errno_ptr to __errno 2020-05-03 12:15:54 -06:00
group Fix nxstyle issue 2020-05-01 10:43:47 -03:00
init sched/init/nx_start.c: Reinstate logic to remove compiler warning 2020-05-07 13:49:15 -06:00
irq sched/: Fix some new coding standard issues. 2020-03-09 17:31:49 +01:00
module modsym: Fix a printf format for berr 2020-04-13 16:20:09 +01:00
mqueue Fix some macOS sim warnings. 2020-04-11 22:27:42 +01:00
paging sched/paging: Fix error: variable 'result' set but not used 2020-04-29 21:40:29 -06:00
pthread sched/sched: Add sched_get_stackinfo() 2020-05-03 23:33:44 +01:00
sched syscall: Fix typo error in cvs and header file 2020-05-07 10:31:05 -06:00
semaphore sched/semaphore/sem_holder.c: Remove DEBUGPANIC 2020-05-04 07:47:44 -07:00
signal Refine __KERNEL__ and CONFIG_BUILD_xxx usage in the code base 2020-05-01 10:43:47 -03:00
task syscall: Fix typo error in cvs and header file 2020-05-07 10:31:05 -06:00
timer Update timer_gettime.c 2020-04-24 19:49:29 +08:00
wdog global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
wqueue Use NuttX's signal set functions inside the OS. 2020-04-29 16:40:27 -06:00
.gitignore Revert "Don't generate .depend anymore" 2020-03-22 23:07:29 -05:00
Kconfig Kconfig: Refine BUILD_FLAT, BUILD_PROTECTED and BUILD_KERNEL usage 2020-04-29 12:16:18 -06:00
Makefile Revert "Don't generate .depend anymore" 2020-03-22 23:07:29 -05:00