From 5f2a147c3eaf1ae09ad49107a68325835cdb8207 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Fri, 3 Aug 2018 23:07:53 +0300 Subject: [PATCH] Turn off warnings only for external code --- code/extra_scripts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/extra_scripts.py b/code/extra_scripts.py index 75fd5f9a..c4946f25 100644 --- a/code/extra_scripts.py +++ b/code/extra_scripts.py @@ -10,7 +10,7 @@ from platformio import util import distutils.spawn -Import("env") +Import("env", "projenv") # ------------------------------------------------------------------------------ # Utils @@ -86,6 +86,9 @@ def check_size(source, target, env): # Hooks # ------------------------------------------------------------------------------ +# Always show warnings for project code +projenv.ProcessUnFlags("-w") + remove_float_support() env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", check_size)