diff options
author | Sven Gothel <[email protected]> | 2020-05-03 20:27:46 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-05-03 20:27:46 +0200 |
commit | d3e86e6a934af213f014b06f6469cfc97c0f5f83 (patch) | |
tree | 95da19fc9f3bc4e3e027ba08622bdd7fd0ec8a7d /examples | |
parent | 027e4c182c95334f0190705a8f9e654227a756d6 (diff) |
examples: remove warnings
Diffstat (limited to 'examples')
-rw-r--r-- | examples/tinyb/list_mfg.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/tinyb/list_mfg.cpp b/examples/tinyb/list_mfg.cpp index 5f298ffb..09a1806d 100644 --- a/examples/tinyb/list_mfg.cpp +++ b/examples/tinyb/list_mfg.cpp @@ -36,7 +36,7 @@ using namespace tinyb; * @param[in] raw_temp The temperature read from the sensor (two bytes) * @return The Celsius value of the temperature */ -static float celsius_temp(uint16_t raw_temp) +float celsius_temp(uint16_t raw_temp) { const float SCALE_LSB = 0.03125; return ((float)(raw_temp >> 2)) * SCALE_LSB; @@ -58,6 +58,9 @@ void signal_handler(int signum) */ int main(int argc, char **argv) { + (void)argc; // FIXME + (void)argv; // FIXME + BluetoothManager *manager = nullptr; try { manager = BluetoothManager::get_bluetooth_manager(); @@ -73,6 +76,9 @@ int main(int argc, char **argv) BluetoothDevice *sensor_tag = NULL; BluetoothGattService *temperature_service = NULL; + (void)sensor_tag; // FIXME + (void)temperature_service; // FIXME + for (;;) { std::cout << "Discovered devices: " << std::endl; /* Get the list of devices */ |