Skip to content

Commit

Permalink
gcc: Adding -w flag to compiler.c.elf.flags in order to avoid printin…
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Fissore authored and cmaglie committed Jun 25, 2014
1 parent fdffb2d commit 6f74581
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hardware/arduino/avr/platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ version=1.5.6
compiler.path={runtime.ide.path}/hardware/tools/avr/bin/
compiler.c.cmd=avr-gcc
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD -flto
compiler.c.elf.flags=-Os -Wl,--gc-sections -flto
# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
# This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain
compiler.c.elf.flags=-Os -Wl,--gc-sections -w -flto
compiler.c.elf.cmd=avr-gcc
compiler.S.flags=-c -g -x assembler-with-cpp
compiler.cpp.cmd=avr-g++
Expand Down

0 comments on commit 6f74581

Please sign in to comment.