File no-return-in-nonvoid-function.patch of Package libindi
diff -Naur libindi-0.9.7.orig/drivers/auxiliary/joystickdriver.cpp libindi-0.9.7/drivers/auxiliary/joystickdriver.cpp
--- libindi-0.9.7.orig/drivers/auxiliary/joystickdriver.cpp 2013-11-15 19:26:49.000000000 +0100
+++ libindi-0.9.7/drivers/auxiliary/joystickdriver.cpp 2014-02-01 19:46:41.003128771 +0100
@@ -107,6 +107,7 @@
void* JoyStickDriver::loop(void *obj)
{
while (reinterpret_cast<JoyStickDriver *>(obj)->active) reinterpret_cast<JoyStickDriver *>(obj)->readEv();
+ return obj;
}
void JoyStickDriver::readEv()
diff -Naur libindi-0.9.7.orig/drivers/focuser/robofocus.cpp libindi-0.9.7/drivers/focuser/robofocus.cpp
--- libindi-0.9.7.orig/drivers/focuser/robofocus.cpp 2013-11-15 19:26:49.000000000 +0100
+++ libindi-0.9.7/drivers/focuser/robofocus.cpp 2014-02-01 18:54:44.582089395 +0100
@@ -1524,5 +1524,8 @@
IUSaveConfigText(fp, &PortTP);
IUSaveConfigNumber(fp, &SettingsNP);
IUSaveConfigNumber(fp, &SetBacklashNP);
+
+ return true;
+
}
diff -Naur libindi-0.9.7.orig/drivers/telescope/lx200_16.cpp libindi-0.9.7/drivers/telescope/lx200_16.cpp
--- libindi-0.9.7.orig/drivers/telescope/lx200_16.cpp 2013-11-15 19:26:49.000000000 +0100
+++ libindi-0.9.7/drivers/telescope/lx200_16.cpp 2014-02-01 19:33:07.808295105 +0100
@@ -61,6 +61,7 @@
IUFillNumber(&HorizontalCoordsN[1], "AZ", "Az D:M:S", "%10.6m", 0.0, 360.0, 0.0, 0);
IUFillNumberVector(&HorizontalCoordsNP, HorizontalCoordsN, 2, getDeviceName(), "HORIZONTAL_COORD", "Horizontal Coord", MAIN_CONTROL_TAB, IP_RW, 0, IPS_IDLE);
+ return true;
}
void LX200_16::ISGetProperties (const char *dev)
@@ -99,7 +100,7 @@
deleteProperty(HomeSearchSP.name);
deleteProperty(FieldDeRotatorSP.name);
}
-
+ return true;
}
@@ -150,6 +151,7 @@
}
LX200GPS::ISNewNumber (dev, name, values, names, n);
+ return true;
}
bool LX200_16::ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
diff -Naur libindi-0.9.7.orig/drivers/telescope/lx200autostar.cpp libindi-0.9.7/drivers/telescope/lx200autostar.cpp
--- libindi-0.9.7.orig/drivers/telescope/lx200autostar.cpp 2013-11-15 19:26:49.000000000 +0100
+++ libindi-0.9.7/drivers/telescope/lx200autostar.cpp 2014-02-01 19:00:51.852497883 +0100
@@ -96,12 +96,14 @@
// For Autostar, we have a different focus speed method
// Therefore, we don't need the classical one
deleteProperty(FocusModeSP.name);
+ return true;
}
else
{
deleteProperty(VersionTP.name);
deleteProperty(FocusSpeedNP.name);
+ return false;
}
}
diff -Naur libindi-0.9.7.orig/drivers/telescope/lx200classic.cpp libindi-0.9.7/drivers/telescope/lx200classic.cpp
--- libindi-0.9.7.orig/drivers/telescope/lx200classic.cpp 2013-11-15 19:26:49.000000000 +0100
+++ libindi-0.9.7/drivers/telescope/lx200classic.cpp 2014-02-01 19:02:06.741561641 +0100
@@ -83,6 +83,8 @@
IUFillNumber(&ElevationLimitN[0], "minAlt", "Speed", "%%+03f", -90.0, 90.0, 0.0, 0.0);
IUFillNumber(&ElevationLimitN[1], "maxAlt", "Speed", "%+03f", -90.0, 90.0, 0.0, 0.0);
IUFillNumberVector(&ElevationLimitNP, ElevationLimitN, 1, getDeviceName(), "Slew elevation Limit", "", MAIN_CONTROL_TAB, IP_RW, 0, IPS_IDLE);
+
+ return true;
}
void LX200Classic::ISGetProperties (const char *dev)
@@ -118,6 +120,7 @@
defineSwitch(&DeepSkyCatalogSP);
defineNumber(&ObjectNoNP);
defineNumber(&MaxSlewRateNP);
+ return true;
}
else
{
@@ -128,6 +131,7 @@
deleteProperty(DeepSkyCatalogSP.name);
deleteProperty(ObjectNoNP.name);
deleteProperty(MaxSlewRateNP.name);
+ return false;
}
}
diff -Naur libindi-0.9.7.orig/drivers/telescope/lx200gps.cpp libindi-0.9.7/drivers/telescope/lx200gps.cpp
--- libindi-0.9.7.orig/drivers/telescope/lx200gps.cpp 2013-11-15 19:26:49.000000000 +0100
+++ libindi-0.9.7/drivers/telescope/lx200gps.cpp 2014-02-01 19:02:43.212105697 +0100
@@ -83,6 +83,7 @@
IUFillNumber(&OTATempN[0], "Temp", "", "%03g", -200.0, 500.0, 0.0, 0);
IUFillNumberVector(&OTATempNP, OTATempN, 1, getDeviceName(), "OTA Temp (C)", "", GPS_TAB, IP_RO, 0, IPS_IDLE);
+ return true;
}
void LX200GPS::ISGetProperties (const char *dev)
diff -Naur libindi-0.9.7.orig/examples/tutorial_two/simplescope.cpp libindi-0.9.7/examples/tutorial_two/simplescope.cpp
--- libindi-0.9.7.orig/examples/tutorial_two/simplescope.cpp 2013-11-15 19:26:49.000000000 +0100
+++ libindi-0.9.7/examples/tutorial_two/simplescope.cpp 2014-02-01 19:03:24.929584156 +0100
@@ -118,6 +118,7 @@
INDI::Telescope::initProperties();
addDebugControl();
+ return true;
}
/**************************************************************************************
diff -Naur libindi-0.9.7.orig/libs/indibase/indicontroller.cpp libindi-0.9.7/libs/indibase/indicontroller.cpp
--- libindi-0.9.7.orig/libs/indibase/indicontroller.cpp 2013-11-15 19:26:49.000000000 +0100
+++ libindi-0.9.7/libs/indibase/indicontroller.cpp 2014-02-01 19:04:46.940558878 +0100
@@ -65,6 +65,7 @@
IUFillTextVector(&JoystickSettingTP, JoystickSettingT, JoystickSettingTP.ntp, device->getDeviceName(), "JOYSTICKSETTINGS", "Settings", "Joystick", IP_RW, 0, IPS_IDLE);
+ return true;
}
void Controller::ISGetProperties(const char *dev)
@@ -228,6 +229,7 @@
joystickCallbackFunc(setting, mag, angle);
}
+ return true;
}
diff -Naur libindi-0.9.7.orig/libs/indibase/indilogger.cpp libindi-0.9.7/libs/indibase/indilogger.cpp
--- libindi-0.9.7.orig/libs/indibase/indilogger.cpp 2013-11-15 19:26:49.000000000 +0100
+++ libindi-0.9.7/libs/indibase/indilogger.cpp 2014-02-01 19:05:50.549763654 +0100
@@ -360,6 +360,7 @@
case DBG_EXTRA_3: return 6;
case DBG_EXTRA_4: return 7;
}
+ return true;
}
void Logger::print(const char *devicename,