diff --git a/tools/export/sw4stm32/cproject_common.tmpl b/tools/export/sw4stm32/cproject_common.tmpl
index 96fd518a9d..3412e5e53e 100644
--- a/tools/export/sw4stm32/cproject_common.tmpl
+++ b/tools/export/sw4stm32/cproject_common.tmpl
@@ -43,7 +43,7 @@
{% endfor %}
@@ -125,7 +125,7 @@
{% endfor %}
@@ -192,7 +192,7 @@
-
+
{% if opts['ld']['flags'] != '' %}
{% endif %}
@@ -256,6 +256,7 @@
{% endfor %}
+
{% for item in opts['as']['otherwarnings'] %}
{% if item == '-W' %}