Skip to content

Commit 9c61a44

Browse files
author
James Foster
committed
Fix problem with warnings (Arduino-CI#297).
1 parent b3e0bd7 commit 9c61a44

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

SampleProjects/TestSomething/.arduino-ci.yml

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
platforms:
2+
uno:
3+
board: arduino:avr:uno
4+
package: arduino:avr
5+
gcc:
6+
features:
7+
defines:
8+
- __AVR__
9+
- __AVR_ATmega328P__
10+
- ARDUINO_ARCH_AVR
11+
- ARDUINO_AVR_UNO
12+
warnings:
13+
- no-unknown-attributes
14+
flags:
15+
116
unittest:
217
platforms:
318
- uno

lib/arduino_ci/cpp_library.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def feature_args(ci_gcc_config)
443443
def warning_args(ci_gcc_config)
444444
return [] if ci_gcc_config[:warnings].nil?
445445

446-
ci_gcc_config[:features].map { |w| "-W#{w}" }
446+
ci_gcc_config[:warnings].map { |w| "-W#{w}" }
447447
end
448448

449449
# GCC command line arguments for defines (e.g. -Dhave_something)

0 commit comments

Comments
 (0)