Skip to content

Commit 48d574b

Browse files
committed
Clean up comments in platform.txt
- Remove comment in Arduino AVR Boards platform.txt about -w flag. This is no longer relevant since the compiler warning level is now set by the user. - Fix typos
1 parent 7b2f6fc commit 48d574b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

platform.txt

+4-6
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,18 @@ name=Arduino AVR Boards
99
version=1.6.10
1010

1111
# AVR compile variables
12-
# ---------------------
12+
# ---------------------
1313

1414
compiler.warning_flags=-w
1515
compiler.warning_flags.none=-w
1616
compiler.warning_flags.default=
1717
compiler.warning_flags.more=-Wall
1818
compiler.warning_flags.all=-Wall -Wextra
1919

20-
# Default "compiler.path" is correct, change only if you want to overidde the initial value
20+
# Default "compiler.path" is correct, change only if you want to override the initial value
2121
compiler.path={runtime.tools.avr-gcc.path}/bin/
2222
compiler.c.cmd=avr-gcc
2323
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD
24-
# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
25-
# This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain
2624
compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--gc-sections
2725
compiler.c.elf.cmd=avr-gcc
2826
compiler.S.flags=-c -g -x assembler-with-cpp
@@ -37,7 +35,7 @@ compiler.elf2hex.cmd=avr-objcopy
3735
compiler.ldflags=
3836
compiler.size.cmd=avr-size
3937

40-
# This can be overriden in boards.txt
38+
# This can be overridden in boards.txt
4139
build.extra_flags=
4240

4341
# These can be overridden in platform.local.txt
@@ -113,7 +111,7 @@ tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verb
113111

114112

115113
# USB Default Flags
116-
# Default blank usb manufacturer will be filled it at compile time
114+
# Default blank usb manufacturer will be filled in at compile time
117115
# - from numeric vendor ID, set to Unknown otherwise
118116
build.usb_manufacturer="Unknown"
119117
build.usb_flags=-DUSB_VID={build.vid} -DUSB_PID={build.pid} '-DUSB_MANUFACTURER={build.usb_manufacturer}' '-DUSB_PRODUCT={build.usb_product}'

0 commit comments

Comments
 (0)