Skip to content

Commit

Permalink
Bug 1241549 - Annotate intentional switch fallthrough in hal/linux/UP…
Browse files Browse the repository at this point in the history
…owerClient.cpp. r=gsvelto

hal/linux/UPowerClient.cpp:420:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
  • Loading branch information
cpeterso committed Jan 21, 2016
1 parent 5de97a0 commit f8c52db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hal/linux/UPowerClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -417,6 +418,7 @@ UPowerClient::UpdateSavedInfo(GHashTable* aHashTable)
break;
case eState_FullyCharged:
isFull = true;
MOZ_FALLTHROUGH;
case eState_Charging:
case eState_PendingCharge:
mCharging = true;
Expand Down

0 comments on commit f8c52db

Please sign in to comment.