Hi All,

I am compiling indilib with my own observatory software (in C++ & Qt 6.2). When I compile, I get the following warning (many of them):

/home/shoupydad/QtProjects/CCDAuto/indiclient.cpp:227: warning: ‘INDI::Property::operator INDI::PropertyViewSwitch*() const’ is deprecated: Do not use INDI::Property as pointer. [-Wdeprecated-declarations]
../CCDAuto/indiclient.cpp: In member function ‘bool IndiClient::isDomeSlaved(const char*)’:
../CCDAuto/indiclient.cpp:227:57: warning: ‘INDI::Property::operator INDI::PropertyViewSwitch*() const’ is deprecated: Do not use INDI::Property as pointer. [-Wdeprecated-declarations]
227 | slavedSwitch = domeDevice->getSwitch("DOME_AUTOSYNC");
| ^

The offending code is:

ISwitchVectorProperty *slavedSwitch = nullptr;
slavedSwitch = domeDevice->getSwitch("DOME_AUTOSYNC");
if (slavedSwitch == nullptr) {
mainWindow->StatusPrint("*** Warning - Unable to find dome DOME_AUTOSYNC property. (isDomeSlaved) ");
return false;
}

Is there some other way I should be getting a switch? Thanks for any help/info. Tony...

Read More...