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.

 

../platform/stm32/l4/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_rcc.h:735:57:

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.

Outcomes