Skip to content

Commit 0e69d9a

Browse files
author
James Foster
authored
Merge pull request #297 from jgfoster/warnings
Fix problem with warnings for platforms
2 parents cf155e7 + e385bc0 commit 0e69d9a

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
- `--min-free-space=N` command-line argument to fail if free space is below requred value
1212

1313
### Changed
14+
- Fix copy/paste error to allow additional warnings for a platform
1415
- Properly report compile errors in GitHub Actions (#296)
1516
- Put build artifacts in a separate directory to reduce clutter.
1617
- Change 266 files from CRLF to LF.

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)