diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-07-13 23:33:16 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-07-13 23:33:16 -0500 |
commit | 3f29c1a35113bfd2461dca76235f1812c8dfd6ef (patch) | |
tree | f431b2f52e64ddb4999be2f6791c160f24da6470 /tests | |
parent | 2d06cbb066f9ae0a0a49d5d260ebe28bb17311fc (diff) | |
download | ayatana-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')
-rw-r--r-- | tests/test-device.cc | 4 |
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[] = { |