Fix compiler warnings:

warning: enumeration value '_None' not handled in switch [-Wswitch]
warning: enumeration value '_Undef' not handled in switch [-Wswitch]
This commit is contained in:
Marek Bel 2019-07-16 17:40:28 +02:00
parent 6b8a5bc3ac
commit cee875fc6a

View File

@ -393,6 +393,9 @@ switch(oCheckMode)
lcd_show_fullscreen_message_and_wait_P(_i("Nozzle diameter doesn't match! Print is aborted, press the knob.")); lcd_show_fullscreen_message_and_wait_P(_i("Nozzle diameter doesn't match! Print is aborted, press the knob."));
lcd_print_stop(); lcd_print_stop();
break; break;
case ClCheckMode::_None:
case ClCheckMode::_Undef:
break;
} }
bSettings=false; // flag ('fake parameter') for 'lcd_checking_menu()' function bSettings=false; // flag ('fake parameter') for 'lcd_checking_menu()' function
menu_submenu(lcd_checking_menu); menu_submenu(lcd_checking_menu);
@ -419,6 +422,9 @@ switch(oCheckModel)
lcd_show_fullscreen_message_and_wait_P(_i("Printer model doesn't match! Print is aborted, press the knob.")); lcd_show_fullscreen_message_and_wait_P(_i("Printer model doesn't match! Print is aborted, press the knob."));
lcd_print_stop(); lcd_print_stop();
break; break;
case ClCheckModel::_None:
case ClCheckModel::_Undef:
break;
} }
} }
@ -462,6 +468,9 @@ switch(oCheckVersion)
lcd_show_fullscreen_message_and_wait_P(_i("FW version doesn't match! Print is aborted, press the knob.")); lcd_show_fullscreen_message_and_wait_P(_i("FW version doesn't match! Print is aborted, press the knob."));
lcd_print_stop(); lcd_print_stop();
break; break;
case ClCheckVersion::_None:
case ClCheckVersion::_Undef:
break;
} }
} }
@ -488,6 +497,9 @@ switch(oCheckGcode)
lcd_show_fullscreen_message_and_wait_P(_i("G-code level doesn't match! Print is aborted, press the knob.")); lcd_show_fullscreen_message_and_wait_P(_i("G-code level doesn't match! Print is aborted, press the knob."));
lcd_print_stop(); lcd_print_stop();
break; break;
case ClCheckGcode::_None:
case ClCheckGcode::_Undef:
break;
} }
} }
@ -547,6 +559,9 @@ switch(oCheckModel)
lcd_show_fullscreen_message_and_wait_P(_i("Printer model doesn't match! Print is aborted, press the knob.")); lcd_show_fullscreen_message_and_wait_P(_i("Printer model doesn't match! Print is aborted, press the knob."));
lcd_print_stop(); lcd_print_stop();
break; break;
case ClCheckModel::_None:
case ClCheckModel::_Undef:
break;
} }
} }