This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Compiler warnings/errors on unused variables

Following file: nRF5_SDK_15.2.0_9412b96/modules/nrfx/drivers/src/nrfx_saadc.c

I've now just add gcc specific unused attributes.

This is just a work around. Best would be to check why gcc trips over NRFX_ASSERT.

Parents
  • Have you defined the preprocessor symbol DEBUG_NRF?

    NRFX_ASSERT() is mapped to ASSERT() in nrfx_glue.h, which only perform some useful operation if this symbol is defined:

Reply
  • Have you defined the preprocessor symbol DEBUG_NRF?

    NRFX_ASSERT() is mapped to ASSERT() in nrfx_glue.h, which only perform some useful operation if this symbol is defined:

Children