jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Build fails with enabled Valgrind support

Open bzsolt opened this issue 11 years ago • 1 comments

Build fails with enabled Valgrind support for {debug,release}.mcu_stm32f* targets. Seemingly unused params and variables triggered these errors:

jerryscript/third-party/valgrind/valgrind.h:3714:29: error: unused parameter 'format' [-Werror=unused-parameter]
    VALGRIND_PRINTF(const char *format, ...)
jerryscript/jerry-core/mem/mem-heap.cpp:337:62: error: statement has no effect [-Werror=unused-value]
    VALGRIND_NOACCESS_SPACE (mem_heap.area, MEM_HEAP_AREA_SIZE);
jerryscript/jerry-core/mem/mem-poolman.cpp:312:13: error: unused variable 'vbits' [-Werror=unused-variable]
    uint8_t vbits[MEM_POOL_CHUNK_SIZE];

bzsolt avatar Dec 03 '15 12:12 bzsolt

Valgrind-enabled build is not supported for mcu targets. We need to add some "Configuration is unsupported"-like message, after which build process should exit with a fail status code.

ruben-ayrapetyan avatar Jan 13 '16 16:01 ruben-ayrapetyan