File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,23 @@ version=1.6.0
11
11
# AVR compile variables
12
12
# ---------------------
13
13
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
+
14
20
# Default "compiler.path" is correct, change only if you want to overidde the initial value
15
21
compiler.path={runtime.tools.avr-gcc.path}/bin/
16
22
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
18
24
# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
19
25
# 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
21
27
compiler.c.elf.cmd=avr-gcc
22
28
compiler.S.flags=-c -g -x assembler-with-cpp
23
29
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
25
31
compiler.ar.cmd=avr-ar
26
32
compiler.ar.flags=rcs
27
33
compiler.objcopy.cmd=avr-objcopy
You can’t perform that action at this time.
0 commit comments