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

@ -197,7 +197,6 @@ class AM2315 {
time_t m_last_time;
int m_base_priority;
pthread_t this_thread;
};
}

View File

@ -210,7 +210,7 @@ unsigned Device_Count(
uint32_t Device_Index_To_Instance(
unsigned index)
{
index = index;
//index = index;
return Object_Instance_Number;
}

View File

@ -196,7 +196,6 @@ class BMPX8X : public IPressureSensor, public ITemperatureSensor {
std::string m_name;
int m_controlAddr;
int m_bus;
mraa::I2c m_i2ControlCtx;
uint8_t oversampling;

View File

@ -594,8 +594,6 @@ namespace upm {
private:
bool m_isSPI;
// use the FIFO by default?
bool m_useFIFO;
// return a reference to a gpio pin pointer depending on intr
mraa::Gpio*& getPin(INTERRUPT_PINS_T intr);

View File

@ -29,8 +29,6 @@
using namespace upm;
using namespace std;
static const int defaultDelay = 100; // max wait time for read
GPRS::GPRS(int uart) :
m_uart(uart)
{

View File

@ -29,8 +29,6 @@
using namespace upm;
using namespace std;
static const int defaultDelay = 100; // max wait time for read
GroveGPRS::GroveGPRS(int uart) :
m_uart(uart)
{

View File

@ -31,8 +31,6 @@
using namespace upm;
using namespace std;
static const int defaultDelay = 100; // max wait time for read
HM11::HM11(int uart)
{
m_ttyFd = -1;

View File

@ -330,8 +330,6 @@ namespace upm {
mraa::Result rstLow();
private:
uint8_t m_spiBuffer[32];
mraa::Gpio m_csLCDPinCtx;
mraa::Gpio m_csSDPinCtx;
mraa::Gpio m_dcPinCtx;

View File

@ -420,7 +420,6 @@ class NRF24L01 {
uint8_t m_power;
uint8_t m_ptx;
uint8_t m_payload;
uint8_t m_localAddress[5];
mraa::Gpio m_csnPinCtx;
mraa::Gpio m_cePinCtx;

View File

@ -104,7 +104,6 @@ private:
uint8_t is_pulse; /**< Is pulse check */
uint8_t first_beat; /**< First heartbeat */
uint8_t second_beat; /**< Second heartbeat */
uint8_t pin; /**< Pin */
uint8_t ret; /**< Return value */
mraa::Aio pin_ctx; /**< The pin context */
#if defined(SWIGJAVA) || defined(JAVACALLBACK)

View File

@ -141,7 +141,6 @@ class T6713 : public ICO2Sensor {
uint16_t getSensorData (t6713_co2::MODBUS_COMMANDS cmd);
t6713_co2::STATUS getStatus();
int bus;
mraa::I2c* i2c;
mraa::Result status;
};

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 ?