Skip to content

Commit 12f11b2

Browse files
committed
[LL] Ignore some warnings
Since core use some LL, build is polluted with several warnings. Mainly unused parameters or strict aliasing. Until this is corrected in official cube release simply ignore them using: #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wstrict-aliasing" ... #pragma GCC diagnostic pop Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 1b7da56 commit 12f11b2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+202
-2
lines changed

cores/arduino/stm32/LL/stm32yyxx_ll.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#ifndef _STM32YYXX_LL_H_
22
#define _STM32YYXX_LL_H_
3-
4-
/* Include Low Layers drivers */
53
/* LL raised several warnings, ignore them */
64
#pragma GCC diagnostic push
75
#pragma GCC diagnostic ignored "-Wunused-parameter"
86
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
7+
8+
/* Include Low Layers drivers */
99
#include "stm32yyxx_ll_adc.h"
1010
#include "stm32yyxx_ll_bdma.h"
1111
#include "stm32yyxx_ll_bus.h"

cores/arduino/stm32/LL/stm32yyxx_ll_adc.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#ifndef _STM32YYXX_LL_ADC_H_
22
#define _STM32YYXX_LL_ADC_H_
3+
/* LL raised several warnings, ignore them */
4+
#pragma GCC diagnostic push
5+
#pragma GCC diagnostic ignored "-Wunused-parameter"
6+
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
37

48
#ifdef STM32F0xx
59
#include "stm32f0xx_ll_adc.h"
@@ -37,4 +41,5 @@
3741
#ifdef STM32WBxx
3842
#include "stm32wbxx_ll_adc.h"
3943
#endif
44+
#pragma GCC diagnostic pop
4045
#endif /* _STM32YYXX_LL_ADC_H_ */
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#ifndef _STM32YYXX_LL_BDMA_H_
22
#define _STM32YYXX_LL_BDMA_H_
3+
/* LL raised several warnings, ignore them */
4+
#pragma GCC diagnostic push
5+
#pragma GCC diagnostic ignored "-Wunused-parameter"
6+
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
37

48
#ifdef STM32H7xx
59
#include "stm32h7xx_ll_bdma.h"
610
#endif
11+
#pragma GCC diagnostic pop
712
#endif /* _STM32YYXX_LL_BDMA_H_ */

cores/arduino/stm32/LL/stm32yyxx_ll_bus.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#ifndef _STM32YYXX_LL_BUS_H_
22
#define _STM32YYXX_LL_BUS_H_
3+
/* LL raised several warnings, ignore them */
4+
#pragma GCC diagnostic push
5+
#pragma GCC diagnostic ignored "-Wunused-parameter"
6+
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
37

48
#ifdef STM32F0xx
59
#include "stm32f0xx_ll_bus.h"
@@ -37,4 +41,5 @@
3741
#ifdef STM32WBxx
3842
#include "stm32wbxx_ll_bus.h"
3943
#endif
44+
#pragma GCC diagnostic pop
4045
#endif /* _STM32YYXX_LL_BUS_H_ */

cores/arduino/stm32/LL/stm32yyxx_ll_comp.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#ifndef _STM32YYXX_LL_COMP_H_
22
#define _STM32YYXX_LL_COMP_H_
3+
/* LL raised several warnings, ignore them */
4+
#pragma GCC diagnostic push
5+
#pragma GCC diagnostic ignored "-Wunused-parameter"
6+
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
37

48
#ifdef STM32F0xx
59
#include "stm32f0xx_ll_comp.h"
@@ -25,4 +29,5 @@
2529
#ifdef STM32WBxx
2630
#include "stm32wbxx_ll_comp.h"
2731
#endif
32+
#pragma GCC diagnostic pop
2833
#endif /* _STM32YYXX_LL_COMP_H_ */

cores/arduino/stm32/LL/stm32yyxx_ll_cortex.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#ifndef _STM32YYXX_LL_CORTEX_H_
22
#define _STM32YYXX_LL_CORTEX_H_
3+
/* LL raised several warnings, ignore them */
4+
#pragma GCC diagnostic push
5+
#pragma GCC diagnostic ignored "-Wunused-parameter"
6+
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
37

48
#ifdef STM32F0xx
59
#include "stm32f0xx_ll_cortex.h"
@@ -37,4 +41,5 @@
3741
#ifdef STM32WBxx
3842
#include "stm32wbxx_ll_cortex.h"
3943
#endif
44+
#pragma GCC diagnostic pop
4045
#endif /* _STM32YYXX_LL_CORTEX_H_ */

cores/arduino/stm32/LL/stm32yyxx_ll_crc.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#ifndef _STM32YYXX_LL_CRC_H_
22
#define _STM32YYXX_LL_CRC_H_
3+
/* LL raised several warnings, ignore them */
4+
#pragma GCC diagnostic push
5+
#pragma GCC diagnostic ignored "-Wunused-parameter"
6+
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
37

48
#ifdef STM32F0xx
59
#include "stm32f0xx_ll_crc.h"
@@ -37,4 +41,5 @@
3741
#ifdef STM32WBxx
3842
#include "stm32wbxx_ll_crc.h"
3943
#endif
44+
#pragma GCC diagnostic pop
4045
#endif /* _STM32YYXX_LL_CRC_H_ */

cores/arduino/stm32/LL/stm32yyxx_ll_crs.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#ifndef _STM32YYXX_LL_CRS_H_
22
#define _STM32YYXX_LL_CRS_H_
3+
/* LL raised several warnings, ignore them */
4+
#pragma GCC diagnostic push
5+
#pragma GCC diagnostic ignored "-Wunused-parameter"
6+
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
37

48
#ifdef STM32F0xx
59
#include "stm32f0xx_ll_crs.h"
@@ -13,4 +17,5 @@
1317
#ifdef STM32WBxx
1418
#include "stm32wbxx_ll_crs.h"
1519
#endif
20+
#pragma GCC diagnostic pop
1621
#endif /* _STM32YYXX_LL_CRS_H_ */

cores/arduino/stm32/LL/stm32yyxx_ll_dac.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#ifndef _STM32YYXX_LL_DAC_H_
22
#define _STM32YYXX_LL_DAC_H_
3+
/* LL raised several warnings, ignore them */
4+
#pragma GCC diagnostic push
5+
#pragma GCC diagnostic ignored "-Wunused-parameter"
6+
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
37

48
#ifdef STM32F0xx
59
#include "stm32f0xx_ll_dac.h"
@@ -34,4 +38,5 @@
3438
#ifdef STM32L4xx
3539
#include "stm32l4xx_ll_dac.h"
3640
#endif
41+
#pragma GCC diagnostic pop
3742
#endif /* _STM32YYXX_LL_DAC_H_ */
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#ifndef _STM32YYXX_LL_DELAYBLOCK_H_
22
#define _STM32YYXX_LL_DELAYBLOCK_H_
3+
/* LL raised several warnings, ignore them */
4+
#pragma GCC diagnostic push
5+
#pragma GCC diagnostic ignored "-Wunused-parameter"
6+
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
37

48
#ifdef STM32H7xx
59
#include "stm32h7xx_ll_delayblock.h"
610
#endif
11+
#pragma GCC diagnostic pop
712
#endif /* _STM32YYXX_LL_DELAYBLOCK_H_ */

0 commit comments

Comments
 (0)