Bug 1073003 - Fix -Wswitch warnings. r=echen
authorBotond Ballo <botond@mozilla.com>
Tue, 23 Dec 2014 03:11:17 -0500
changeset 239295 de91475479040058837252e0479190055f4f50fa
parent 239294 a7972d1adc997926e4c836df537dcec6a06b07d0
child 239296 b022fa348b73871d462fc6779ca23a2af648a03b
push id7472
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 20:36:27 +0000
treeherdermozilla-aurora@300ca104f8fb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersechen
bugs1073003
milestone37.0a1
Bug 1073003 - Fix -Wswitch warnings. r=echen
dom/icc/Icc.cpp
--- a/dom/icc/Icc.cpp
+++ b/dom/icc/Icc.cpp
@@ -29,19 +29,19 @@ IsPukCardLockType(IccLockType aLockType)
     case IccLockType::Nck1Puk:
     case IccLockType::Nck2Puk:
     case IccLockType::HnckPuk:
     case IccLockType::CckPuk:
     case IccLockType::SpckPuk:
     case IccLockType::RcckPuk:
     case IccLockType::RspckPuk:
       return true;
+    default:
+      return false;
   }
-
-  return false;
 }
 
 } // anonymous namespace
 
 NS_IMPL_CYCLE_COLLECTION_INHERITED(Icc, DOMEventTargetHelper, mIccInfo)
 
 NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(Icc)
 NS_INTERFACE_MAP_END_INHERITING(DOMEventTargetHelper)