Sfoglia il codice sorgente

Fix "not all enum values used in switch" warning on OS X

- Just added a "defaut:" case so the compiler knows
  we've got it handled.
Nur Monson 12 anni fa
parent
commit
e572c8e84e
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      IDE/Contents/Source/PolycodeScreenEditor.cpp

+ 7 - 1
IDE/Contents/Source/PolycodeScreenEditor.cpp

@@ -2086,6 +2086,9 @@ void PolycodeScreenEditorMain::handleEvent(Event *event) {
 				case Polycode::KEY_LSHIFT:
 					multiSelect = true;
 				break;
+				default:
+					// We don't care about the other keys
+				break;
 			}
 		}
 		
@@ -2103,7 +2106,10 @@ void PolycodeScreenEditorMain::handleEvent(Event *event) {
 				case Polycode::KEY_RSHIFT:
 				case Polycode::KEY_LSHIFT:
 					multiSelect = false;
-				break;				
+				break;
+				default:
+					// We don't care about the other keys
+				break;
 			}
 		}