Skip to content

Commit ecf03eb

Browse files
committed
scripts: stm32wrapper: add pragma to ignore unused warnings in LL
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 0eb284d commit ecf03eb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CI/utils/templates/stm32yyxx_zz_ppp.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
{% if type == "ll" %}
2+
/* LL raised several warnings, ignore them */
3+
#pragma GCC diagnostic push
4+
#pragma GCC diagnostic ignored "-Wunused-parameter"
5+
6+
{% endif %}
17
{% for serie in serieslist %}
28
{% if loop.first %}
39
#ifdef STM32{{serie.upper()}}xx
@@ -13,4 +19,7 @@
1319
#endif
1420
{% endif %}
1521
{% endfor %}
22+
{% if type == "ll" %}
23+
#pragma GCC diagnostic pop
24+
{% endif %}
1625

0 commit comments

Comments
 (0)