Skip to content

Commit fbec4a4

Browse files
committed
Merge pull request #158 from fallberg/master
Allow MySensor specific boards to be compiled with warnings enabled
2 parents 59781d6 + 997cb33 commit fbec4a4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

hardware/MySensors/avr/platform.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,23 @@ version=1.6.0
1111
# AVR compile variables
1212
# ---------------------
1313

14+
compiler.warning_flags=-w
15+
compiler.warning_flags.none=-w
16+
compiler.warning_flags.default=
17+
compiler.warning_flags.more=-Wall
18+
compiler.warning_flags.all=-Wall -Wextra
19+
1420
# Default "compiler.path" is correct, change only if you want to overidde the initial value
1521
compiler.path={runtime.tools.avr-gcc.path}/bin/
1622
compiler.c.cmd=avr-gcc
17-
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD
23+
compiler.c.flags=-c -g -Os {compiler.warning_flags} -ffunction-sections -fdata-sections -MMD
1824
# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
1925
# This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain
20-
compiler.c.elf.flags=-w -Os -Wl,--gc-sections
26+
compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--gc-sections
2127
compiler.c.elf.cmd=avr-gcc
2228
compiler.S.flags=-c -g -x assembler-with-cpp
2329
compiler.cpp.cmd=avr-g++
24-
compiler.cpp.flags=-c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD
30+
compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD
2531
compiler.ar.cmd=avr-ar
2632
compiler.ar.flags=rcs
2733
compiler.objcopy.cmd=avr-objcopy

0 commit comments

Comments
 (0)