STMicroelectronics / STM32CubeG4

STM32Cube MCU Full Package for the STM32G4 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
182 stars 98 forks source link

conversion warnings for __NVIC_SetVector and __NVIC_GetVector #50

Closed bassemaed closed 2 months ago

bassemaed commented 2 months ago

Describe the set-up

*Problem Description:

Conversion Warning: Error Message: conversion to 'int' from 'uint32_t' {aka 'long unsigned int'} may change the sign of the result [-Werror=sign-conversion] File: core_cm4.h Path: /Drivers/CMSIS/Include Line: 1908 Type: C/C++ Problem

Sign-Conversion Warning: Error Message: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Werror=sign-conversion] File: core_cm4.h Path: /Drivers/CMSIS/Include Line: 1908 Type: C/C++ Problem

Sign-Conversion Warning: Error Message: conversion to 'long unsigned int' from 'long int' may change the sign of the result [-Werror=sign-conversion] File: core_cm4.h Path: /DCDC_MCU/Drivers/CMSIS/Include Line: 1924 Type: C/C++ Problem

Additional context This can be ommitted by using #pragma

TOUNSTM commented 2 months ago

Hello @bassemaed,

Thank you for this report. Unfortunately we don't treat aspect related to core_cm4.h in our GitHub repositories. These files come from Arm and we use them as is. So, these files are out of the scope of STMicroelectronics what about reporting this issue to the ARM GitHub?

Please allow me to close this issue now. Thank you again for your contribution.

With regards,