diff --git a/src/driver/record.cpp b/src/driver/record.cpp index 1e982dc73..5a5bbe4dc 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -444,11 +444,9 @@ void CRecordInstance::FilterPids(APIDList & apid_list) } if (apidmode & TIMERD_APIDS_ALT) { uint32_t apid_min=UINT_MAX; - uint32_t apid_min_idx=0; for(unsigned int i = 0; i < allpids.APIDs.size(); i++) { if (allpids.APIDs[i].pid < apid_min && !allpids.APIDs[i].is_ac3) { apid_min = allpids.APIDs[i].pid; - apid_min_idx = i; } } for(unsigned int i = 0; i < allpids.APIDs.size(); i++) { diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index c825adc48..5404d1497 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -2263,7 +2263,7 @@ void sectionsd_getCurrentNextServiceKey(t_channel_id uniqueServiceKey, CSections SIevent nextEvt; unsigned flag = 0, flag2=0; /* ugly hack: retry fetching current/next by restarting dmxCN if this is true */ - bool change = false;//TODO remove ? + //bool change = false;//TODO remove ? //t_channel_id * uniqueServiceKey = (t_channel_id *)data; @@ -2273,7 +2273,7 @@ void sectionsd_getCurrentNextServiceKey(t_channel_id uniqueServiceKey, CSections /* ...check for myCurrentEvent and myNextEvent */ if (!myCurrentEvent) { dprintf("!myCurrentEvent "); - change = true; + //change = true; flag |= CSectionsdClient::epgflags::not_broadcast; } else { currentEvt = *myCurrentEvent; @@ -2282,7 +2282,7 @@ void sectionsd_getCurrentNextServiceKey(t_channel_id uniqueServiceKey, CSections } if (!myNextEvent) { dprintf("!myNextEvent "); - change = true; + //change = true; } else { nextEvt = *myNextEvent; if (flag & CSectionsdClient::epgflags::not_broadcast) { @@ -2313,7 +2313,7 @@ void sectionsd_getCurrentNextServiceKey(t_channel_id uniqueServiceKey, CSections if (currentEvt.getName().empty() && flag2 != 0) { dprintf("commandCurrentNextInfoChannelID change1\n"); - change = true; + //change = true; } if (currentEvt.service_id != 0) @@ -2371,7 +2371,7 @@ void sectionsd_getCurrentNextServiceKey(t_channel_id uniqueServiceKey, CSections else if (flag != 0) { dprintf("commandCurrentNextInfoChannelID change2 flag: 0x%02x\n", flag); - change = true; + //change = true; } } diff --git a/src/gui/osdlang_setup.cpp b/src/gui/osdlang_setup.cpp index 917b3762d..560302ea7 100644 --- a/src/gui/osdlang_setup.cpp +++ b/src/gui/osdlang_setup.cpp @@ -232,7 +232,7 @@ void sectionsd_set_languages(const std::vector& newLanguages); bool CLangSelectNotifier::changeNotify(const neutrino_locale_t, void *) { std::vector v_languages; - bool found = false; + //bool found = false; std::map::const_iterator it; //prefered audio languages @@ -249,7 +249,7 @@ bool CLangSelectNotifier::changeNotify(const neutrino_locale_t, void *) { v_languages.push_back(it->first); printf("setLanguages: adding %s\n", it->first.c_str()); - found = true; + //found = true; } } } diff --git a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp index beb762daa..e8cb9301f 100644 --- a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp @@ -757,6 +757,7 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh) { hh->SendError(); return; } +#if 0 unsigned int repeat = 1; unsigned int delay = 250; if (hh->ParamList["delay"] != "") @@ -765,7 +766,7 @@ void CControlAPI::RCEmCGI(CyhookHandler *hh) { repeat = atoi(hh->ParamList["duration"].c_str()) * 1000 / delay; if (hh->ParamList["repeat"] != "") repeat = atoi(hh->ParamList["repeat"].c_str()); - +#endif int evd = open(EVENTDEV, O_RDWR); if (evd < 0) { hh->SendError(); diff --git a/src/nhttpd/tuxboxapi/coolstream/neutrinoapi.cpp b/src/nhttpd/tuxboxapi/coolstream/neutrinoapi.cpp index b47ab8606..11c0a3507 100644 --- a/src/nhttpd/tuxboxapi/coolstream/neutrinoapi.cpp +++ b/src/nhttpd/tuxboxapi/coolstream/neutrinoapi.cpp @@ -222,7 +222,7 @@ t_channel_id CNeutrinoAPI::ChannelNameToChannelId(std::string search_channel_nam bool CNeutrinoAPI::GetStreamInfo(int bitInfo[10]) { - char *key, *tmpptr, buf[100]; + char /* *key,*/ *tmpptr, buf[100]; long value; int pos = 0; @@ -243,7 +243,7 @@ bool CNeutrinoAPI::GetStreamInfo(int bitInfo[10]) { buf[strlen(buf)-1]=0; tmpptr=buf; - key=strsep(&tmpptr,":"); + //key=strsep(&tmpptr,":"); value=strtoul(tmpptr,NULL,0); bitInfo[pos]= value; pos++; diff --git a/src/nhttpd/yhttpd_core/yhook.cpp b/src/nhttpd/yhttpd_core/yhook.cpp index eb2f9e76f..2736998cf 100644 --- a/src/nhttpd/yhttpd_core/yhook.cpp +++ b/src/nhttpd/yhttpd_core/yhook.cpp @@ -237,14 +237,14 @@ std::string CyhookHandler::BuildHeader(bool cache) { std::string result = ""; const char *responseString = ""; - const char *infoString = 0; + //const char *infoString = 0; // get Info Index for (unsigned int i = 0; i < (sizeof(httpResponseNames) / sizeof(httpResponseNames[0])); i++) if (httpResponseNames[i].type == httpStatus) { responseString = httpResponseNames[i].name; - infoString = httpResponseNames[i].info; + //infoString = httpResponseNames[i].info; break; } // print Status-line diff --git a/src/nhttpd/yhttpd_mods/mod_yparser.cpp b/src/nhttpd/yhttpd_mods/mod_yparser.cpp index 3b8cd282f..0df6079b8 100644 --- a/src/nhttpd/yhttpd_mods/mod_yparser.cpp +++ b/src/nhttpd/yhttpd_mods/mod_yparser.cpp @@ -660,14 +660,14 @@ const CyParser::TyFuncCall CyParser::yFuncCallList[] = { //------------------------------------------------------------------------- std::string CyParser::YWeb_cgi_func(CyhookHandler *hh, std::string ycmd) { std::string func, para, yresult = "ycgi func not found"; - bool found = false; + //bool found = false; ySplitString(ycmd, " ", func, para); for (unsigned int i = 0; i < (sizeof(yFuncCallList) / sizeof(yFuncCallList[0])); i++) if (func == yFuncCallList[i].func_name) { yresult = (this->*yFuncCallList[i].pfunc)(hh, para); - found = true; + //found = true; break; } log_level_printf(8, ":%s Result:%s\n", func.c_str(), diff --git a/src/system/ping.c b/src/system/ping.c index 30ea323c4..3d62a965b 100644 --- a/src/system/ping.c +++ b/src/system/ping.c @@ -137,7 +137,7 @@ recv_ping( struct sockaddr_in *taddr ) socklen_t from; int nf, cc; unsigned char buf[ HDRLEN + DATALEN ]; - struct icmp *icp; + //struct icmp *icp; struct sockaddr_in faddr; struct timeval to; fd_set readset, writeset; @@ -169,7 +169,7 @@ recv_ping( struct sockaddr_in *taddr ) exit( EXIT_FAILURE ); } - icp = (struct icmp *)(buf + HDRLEN + DATALEN ); + //icp = (struct icmp *)(buf + HDRLEN + DATALEN ); if( faddr.sin_addr.s_addr != taddr->sin_addr.s_addr ){ return 1; } diff --git a/src/zapit/src/fastscan.cpp b/src/zapit/src/fastscan.cpp index ef1e144a4..dbc29ae40 100644 --- a/src/zapit/src/fastscan.cpp +++ b/src/zapit/src/fastscan.cpp @@ -554,7 +554,7 @@ void CServiceScan::process_service_list_descriptor(const unsigned char * const b void CServiceScan::process_satellite_delivery_system_descriptor(const unsigned char * const buffer, FrontendParameters * feparams, uint8_t * polarization, t_satellite_position * satellitePosition) { stiterator tI; - int modulationSystem, modulationType, rollOff, fec_inner; + int modulationSystem, modulationType, /*rollOff,*/ fec_inner; feparams->frequency = ( ((buffer[2] >> 4) * 100000000) + @@ -575,7 +575,7 @@ void CServiceScan::process_satellite_delivery_system_descriptor(const unsigned c ); feparams->inversion = INVERSION_AUTO; - rollOff = (buffer[8] >> 4) & 0x03; //alpha_0_35, alpha_0_25, alpha_0_20, alpha_auto + //rollOff = (buffer[8] >> 4) & 0x03; //alpha_0_35, alpha_0_25, alpha_0_20, alpha_auto modulationSystem = (buffer[8] >> 2) & 0x01; // 1= DVB_S2 modulationType = (buffer[8]) & 0x03; // 1=QPSK, 2=M8PSK diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index ab874c4b7..27ab7ffe0 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -2220,7 +2220,7 @@ bool CZapitSdtMonitor::Stop() void CZapitSdtMonitor::run() { - time_t tstart, tcur, wtime = 0; + time_t /*tstart,*/ tcur, wtime = 0; t_transport_stream_id transport_stream_id = 0; t_original_network_id original_network_id = 0; t_satellite_position satellitePosition = 0; @@ -2228,7 +2228,7 @@ void CZapitSdtMonitor::run() transponder_id_t tpid = 0; tcur = time(0); - tstart = time(0); + //tstart = time(0); sdt_tp.clear(); printf("[zapit] sdt monitor started\n"); while(started) {