Wunused-but-set-variable: Fixed all unused but set variables

This commit addresses all warnings emitted from
-Wunused-but-set-variable in the C++ src.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck
2016-11-02 22:45:52 -07:00
parent ee27485218
commit 33471436bf
3 changed files with 3 additions and 8 deletions

View File

@ -203,14 +203,13 @@ HTU21D::testSensor(void)
float fTemp, fHum;
float fTempMax, fTempMin;
float fHumMax, fHumMin;
float fHumFirst, fTempFirst;
float fTempFirst;
fprintf(stdout, "Executing Sensor Test\n" );
fHum = getHumidity(true);
fTemp = getTemperature(false);
fTempFirst = fTempMax = fTempMin = fTemp;
fHumFirst = fHumMax = fHumMin = fHum;
// Turn on the heater to make a sensor change
setHeater(true);