llvm: Fixed remaining warnings for llvm

This commit addresses warnings emitted from the llvm
compilers which were not encountered with gnu.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2016-11-03 14:13:39 -07:00
parent c900743f8d
commit 601d25cebc
13 changed files with 3 additions and 18 deletions

View File

@ -209,7 +209,7 @@ upm_result_t tsl2561_compute_lux(const tsl2561_context dev, int *int_data) {
// round the ratio value
int64_t ratio = (ratio_1 + 1) >> 1;
unsigned int b, m;
unsigned int b = 0, m = 0;
// CS package
// Check if ratio <= eachBreak ?

View File

@ -154,7 +154,7 @@ TSL2561::getLux()
// round the ratio value
int64_t ratio = (ratio1 + 1) >> 1;
unsigned int b, m;
unsigned int b = 0, m = 0;
// CS package
// Check if ratio <= eachBreak ?