bitbake: Fix for pthreads C test w/yocto

Fixed a problem where the C/CXX compile flags were getting
overwritten.  Fixed warnings in a few sensor drivers.

This commit fixes #485

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2016-11-08 16:26:16 -08:00
parent 54771e63c1
commit cdc33ceb9f
4 changed files with 6 additions and 5 deletions

View File

@ -202,7 +202,7 @@ HTU21D::testSensor(void)
int iError = 0;
float fTemp, fHum;
float fTempMax, fTempMin;
float fHumMax, fHumMin;
float fHumMax = 0.0, fHumMin = 0.0;
float fTempFirst;
fprintf(stdout, "Executing Sensor Test\n" );

View File

@ -145,7 +145,7 @@ mraa::Result T6713::runCommand(MODBUS_COMMANDS cmd)
{
COMMAND * cmdPacket = new COMMAND ;
mraa::Result ret;
mraa::Result ret = mraa::SUCCESS;
switch(cmd)
{

View File

@ -493,7 +493,7 @@ uint8_t WT5001::getPlayState()
bool WT5001::getNumFiles(WT5001_PLAYSOURCE_T psrc, uint16_t *numf)
{
char pkt[4];
WT5001_OPCODE_T opcode;
WT5001_OPCODE_T opcode = NONE;
pkt[0] = WT5001_START;
pkt[1] = 0x02; // length