Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

display warnings (-Wall) for user code

  • Loading branch information...
commit 8ef4d50d433ec0b50c93b5a4fcedb57c3f90b313 1 parent 2d94c2a
ponty authored
Showing with 8 additions and 8 deletions.
  1. +1 −1  ino/commands/build.py
  2. +7 −7 ino/make/Makefile.jinja
2  ino/commands/build.py
View
@@ -82,7 +82,7 @@ def setup_flags(self, board_key):
'-fdata-sections',
'-g',
'-Os',
- '-w',
+# '-w', # moved into template
'-DF_CPU=' + board['build']['f_cpu'],
'-DARDUINO=' + str(self.e['arduino_lib_version']),
'-I' + self.e['arduino_core_dir'],
14 ino/make/Makefile.jinja
View
@@ -14,12 +14,12 @@
{% endfor %}
{% endmacro %}
-{% macro compile_c(filemap) %}
-{{ compile(filemap, e.cc ~ ' ' ~ e.cflags) }}
+{% macro compile_c(filemap, warning=True) %}
+{{ compile(filemap, e.cc ~ ' ' ~ e.cflags ~ ('' if warning else ' -w')) }}
{% endmacro %}
-{% macro compile_cpp(filemap) %}
-{{ compile(filemap, e.cxx ~ ' ' ~ e.cflags ~ ' ' ~ e.cxxflags) }}
+{% macro compile_cpp(filemap, warning=True) %}
+{{ compile(filemap, e.cxx ~ ' ' ~ e.cflags ~ ' ' ~ e.cxxflags ~ ('' if warning else ' -w')) }}
{% endmacro %}
@@ -36,8 +36,8 @@
{% set cpp = (source_dir|glob('*.cpp'))|filemap(libdir, e.names.obj) %}
{% set libpath = libdir|pjoin(name|libname) %}
{% set libobjs = c.target_paths() + cpp.target_paths() %}
-{{ compile_c(c) }}
-{{ compile_cpp(cpp) }}
+{{ compile_c(c, warning=False) }}
+{{ compile_cpp(cpp, warning=False) }}
{{ libpath }} : {{ libobjs }}
@echo {{ ('Linking ' ~ name|libname) |colorize('green') }}
@{{ e.ar }} rcs $@ $^
@@ -66,7 +66,7 @@
{{ compile_c(c) }}
{#
- # *.cpp -> *.o
+ # ttt *.cpp -> *.o
#}
{% set cpp = (e.src_dir|glob('*.cpp') + sketch_cpps)|filemap(src_build_dir, e.names.obj) %}
{{ compile_cpp(cpp) }}
Please sign in to comment.
Something went wrong with that request. Please try again.