AnsweredAssumed Answered

stm32 hal library warning with C++14

Question asked by Amila Perera on Nov 30, 2017
Latest reply on Apr 23, 2018 by Amila Perera

Hi all,

I am using stm32 HAL library in a project with C++14 enabled. It issues me the following warning which I can't get rid of.



warning: conversion to void will not access object of type 'volatile uint32_t {aka volatile long unsigned int}'
UNUSED(tmpreg); \

This happens, when a call to __GPIOX_CLK_ENABLE() or __HAL_RCC_GPIOX_CLK_ENABLE is called.

Has anyone been able to get rid of the above warning leaving the HAL source code intact.

Or any ideas as what is possible to be done.

The current warning level is -Wall.


I've experienced the above issue with both l4 & f4 series code.


Thank you in advance.