You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/12/11 10:20:31 UTC

[GitHub] [mynewt-core] brianwyld opened a new issue #2128: MyNewt core does not compile (warnings, errors) if NDEBUG is defined

brianwyld opened a new issue #2128: MyNewt core does not compile (warnings, errors) if NDEBUG is defined
URL: https://github.com/apache/mynewt-core/issues/2128
 
 
   If mynewt is compiled with -DNDEBUG, multiple files have errors or warnings. These are mostly simple cases of unused variables used by assert() (which is a void statement in the NDEBUG case).
   
   hw/bus/src/bus.c : bus_node_unlock() - unused variable 'err'
   hw/hal/src/hal_flash.c : hal_flash_erase() - unused variable 'rc'
   hw/mcu/stm/stm32_common/src/hal_gpio.c : MYNEWT_VAL macro undefined (as does not include mynewt.h explicitly)
   hw/mcu/stm/stm32_common/src/hal_uart.c : MYNEWT_VAL macro undefined for same reason
   hw/mcu/stm/stm32_common/src/hal_spi.c : 
      stm32_resolve_spi_irq() : no value returned (as falls thru default case)
     stm32_resolve_spi_irq_handler() : no value returned (as falls thru default case)
   kernel/os/src/os.c :  unused variables 'rc' or 'err' in os_init_idle_task()/os_init()/os_start()/os_pkg_init()
   kernel/os/src/os_heap.c : unused variable 'rc' in os_malloc_lock()/os_malloc_unlock()
   kernel/os/src/os_sched.c : unused variable 'top' in os_sched_ctx_sw_hook()
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services