mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
07708d5fc1
commit
7aa1776928
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user