aboutsummaryrefslogtreecommitdiff
path: root/tests/test-device.cc
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-13 23:33:16 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-13 23:33:16 -0500
commit3f29c1a35113bfd2461dca76235f1812c8dfd6ef (patch)
treef431b2f52e64ddb4999be2f6791c160f24da6470 /tests/test-device.cc
parent2d06cbb066f9ae0a0a49d5d260ebe28bb17311fc (diff)
downloadayatana-indicator-power-3f29c1a35113bfd2461dca76235f1812c8dfd6ef.tar.gz
ayatana-indicator-power-3f29c1a35113bfd2461dca76235f1812c8dfd6ef.tar.bz2
ayatana-indicator-power-3f29c1a35113bfd2461dca76235f1812c8dfd6ef.zip
fix some compiler warnings generated by clang static analyzer
Diffstat (limited to 'tests/test-device.cc')
-rw-r--r--tests/test-device.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-device.cc b/tests/test-device.cc
index 7d54816..1d10b5b 100644
--- a/tests/test-device.cc
+++ b/tests/test-device.cc
@@ -710,10 +710,10 @@ TEST_F(DeviceTest, ChoosePrimary)
std::vector<IndicatorPowerDevice*> devices;
for(const auto& desc : descriptions)
- devices.push_back(indicator_power_device_new(desc.path, desc.kind, desc.percentage, desc.state, desc.time));
+ devices.push_back(indicator_power_device_new(desc.path, desc.kind, desc.percentage, desc.state, (time_t)desc.time));
const struct {
- std::vector<int> device_indices;
+ std::vector<unsigned> device_indices;
Description expected;
} tests[] = {