Browse Source

Turn off warnings only for external code

pull/1101/head
Maxim Prokhorov 5 years ago
parent
commit
5f2a147c3e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      code/extra_scripts.py

+ 4
- 1
code/extra_scripts.py View File

@ -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)

Loading…
Cancel
Save