@@ -351,6 +351,9 @@ class Menu : public uiApp {
351351 case VirtualKey::VK_F12:
352352 runVIC20 ();
353353 break ;
354+ // just to avoid compiler warning
355+ default :
356+ break ;
354357 }
355358 };
356359
@@ -372,6 +375,9 @@ class Menu : public uiApp {
372375 updateFreeSpaceLabel ();
373376 }
374377 break ;
378+ // just to avoid compiler warning
379+ default :
380+ break ;
375381 }
376382 };
377383
@@ -430,7 +436,7 @@ class Menu : public uiApp {
430436
431437 // RAM expansion options
432438 y += 50 ;
433- auto lbl = new uiLabel (rootWindow (), " RAM Expansion:" , Point (150 , y), Size (0 , 0 ), true , STYLE_LABELGROUP);
439+ new uiLabel (rootWindow (), " RAM Expansion:" , Point (150 , y), Size (0 , 0 ), true , STYLE_LABELGROUP);
434440 RAMExpComboBox = new uiComboBox (rootWindow (), Point (158 , y + 20 ), Size (75 , 19 ), 130 , true , STYLE_COMBOBOX);
435441 char const * RAMOPTS[] = { " Unexpanded" , " 3K" , " 8K" , " 16K" , " 24K" , " 27K (24K+3K)" , " 32K" , " 35K (32K+3K)" };
436442 for (int i = 0 ; i < 8 ; ++i)
@@ -442,7 +448,7 @@ class Menu : public uiApp {
442448
443449 // joystick emulation options
444450 y += 50 ;
445- lbl = new uiLabel (rootWindow (), " Joystick:" , Point (150 , y), Size (0 , 0 ), true , STYLE_LABELGROUP);
451+ new uiLabel (rootWindow (), " Joystick:" , Point (150 , y), Size (0 , 0 ), true , STYLE_LABELGROUP);
446452 new uiLabel (rootWindow (), " None" , Point (180 , y + 21 ), Size (0 , 0 ), true , STYLE_LABEL);
447453 auto radioJNone = new uiCheckBox (rootWindow (), Point (158 , y + 20 ), Size (16 , 16 ), uiCheckBoxKind::RadioButton, true , STYLE_CHECKBOX);
448454 new uiLabel (rootWindow (), " Cursor Keys" , Point (180 , y + 41 ), Size (0 , 0 ), true , STYLE_LABEL);
@@ -464,7 +470,7 @@ class Menu : public uiApp {
464470 updateFreeSpaceLabel ();
465471
466472 // "Download From" label
467- auto downloadFromLbl = new uiLabel (rootWindow (), " Download From:" , Point (5 , 326 ), Size (0 , 0 ), true , STYLE_LABELGROUP);
473+ new uiLabel (rootWindow (), " Download From:" , Point (5 , 326 ), Size (0 , 0 ), true , STYLE_LABELGROUP);
468474
469475 // Download List button (download programs listed and linked in LIST_URL)
470476 auto downloadProgsBtn = new uiButton (rootWindow (), " List" , Point (13 , 345 ), Size (27 , 20 ), uiButtonKind::Button, true , STYLE_BUTTON);
@@ -893,4 +899,3 @@ void loop()
893899 auto menu = new Menu;
894900 menu->run (&DisplayController);
895901}
896-
0 commit comments