diff options
author | Richard Hughes <richard@hughsie.com> | 2010-05-28 14:10:22 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2010-05-28 14:10:22 +0100 |
commit | 36bf9c5cde45c9822bc491a9e791371f2d202c69 (patch) | |
tree | 5ef29b491515acffb73ce641ee66aa1abd198238 /src | |
parent | 5c17b5a147874645c0dadde3957a9d9b7132993e (diff) |
trivial: fix a tiny warning reported by clang with the capacity code intial value
Diffstat (limited to 'src')
-rw-r--r-- | src/linux/up-device-supply.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c index f73b677..d728aee 100644 --- a/src/linux/up-device-supply.c +++ b/src/linux/up-device-supply.c @@ -412,7 +412,7 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply) gdouble energy_full; gdouble energy_full_design; gdouble energy_rate; - gdouble capacity; + gdouble capacity = 100.0f; gdouble percentage = 0.0f; gdouble voltage; guint64 time_to_empty; |