Bug 1073003 - Fix -Wswitch warnings. r=echen
authorBotond Ballo <botond@mozilla.com>
Tue, 23 Dec 2014 03:11:17 -0500
changeset 222557 de91475479040058837252e0479190055f4f50fa
parent 222556 a7972d1adc997926e4c836df537dcec6a06b07d0
child 222558 b022fa348b73871d462fc6779ca23a2af648a03b
push id28068
push usercbook@mozilla.com
push dateThu, 08 Jan 2015 13:16:34 +0000
treeherdermozilla-central@2880e05d5e32 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersechen
bugs1073003
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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)