Bug 1241549 - Annotate intentional switch fallthrough in hal/linux/UPowerClient.cpp. r=gsvelto

hal/linux/UPowerClient.cpp:420:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
This commit is contained in:
Chris Peterson 2016-01-20 21:34:41 -08:00
parent 07708d5fc1
commit 7aa1776928

View File

@ -7,6 +7,7 @@
#include "HalLog.h"
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>
#include <mozilla/Attributes.h>
#include <mozilla/dom/battery/Constants.h>
#include "nsAutoRef.h"
#include <cmath>
@ -417,6 +418,7 @@ UPowerClient::UpdateSavedInfo(GHashTable* aHashTable)
break;
case eState_FullyCharged:
isFull = true;
MOZ_FALLTHROUGH;
case eState_Charging:
case eState_PendingCharge:
mCharging = true;