1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-20 21:01:25 +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

@ -379,7 +379,7 @@ public class Preferences {
box.add(label);
WarningItem[] warningItems = new WarningItem[]{new WarningItem("none", _("None")), new WarningItem("default", _("Default")), new WarningItem("more", _("More")), new WarningItem("all", _("All")), };
comboWarnings = new JComboBox(warningItems);
String currentWarningLevel = PreferencesData.get("compiler.warning_flags", "none");
String currentWarningLevel = PreferencesData.get("compiler.warning_level", "none");
for (WarningItem item : warningItems) {
if (currentWarningLevel.equals(item.getValue())) {
comboWarnings.setSelectedItem(item);
@ -771,7 +771,7 @@ public class Preferences {
PreferencesData.set("editor.languages.current", newLanguage.isoCode);
WarningItem warningItem = (WarningItem) comboWarnings.getSelectedItem();
PreferencesData.set("compiler.warning_flags", warningItem.getValue());
PreferencesData.set("compiler.warning_level", warningItem.getValue());
Preferences.set("proxy.http.server", proxyHTTPServer.getText());
try {