1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

Renamed compiler.warning_flags pref to compiler.warning_level

Provided a default value for compiler.warning_flags
Releasing avr core 1.6.5
This commit is contained in:
Federico Fissore
2015-04-24 09:06:30 +02:00
parent 871bc172d0
commit d805fb4e1f
5 changed files with 53 additions and 5 deletions

View File

@ -903,8 +903,8 @@ public class Compiler implements MessageConsumer {
}
private void setupWarningFlags(PreferencesMap dict) {
if (dict.containsKey("compiler.warning_flags")) {
String key = "compiler.warning_flags." + dict.get("compiler.warning_flags");
if (dict.containsKey("compiler.warning_level")) {
String key = "compiler.warning_flags." + dict.get("compiler.warning_level");
dict.put("compiler.warning_flags", dict.get(key));
} else {
dict.put("compiler.warning_flags", dict.get("compiler.warning_flags.none"));