fix Wextra compil

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@770 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2010-09-14 17:13:29 +00:00
parent e9daa350d1
commit 15c474a6d8
6 changed files with 7 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ private:
bool opened;
PWR_STATE powerState;
//
static void ApplicationCallback(void *hHandle, void *pUserData, signed long eEvent, void *pEventData, void *pTag) {}
// static void ApplicationCallback(void *hHandle, void *pUserData, signed long eEvent, void *pEventData, void *pTag) {}
bool SetState(PWR_STATE PowerState);
public:
bool Open(void);

View File

@@ -284,7 +284,7 @@ int EventList::exec(const t_channel_id channel_id, const std::string& channelnam
if(channelname_prev.empty(), channelname_next.empty()){
paintHead(channel_id, channelname);
}else{
paintHead(channel_id, channelname, channelname_prev, channelname_next);
paintHead(channelname, channelname_prev, channelname_next);
}
paint(channel_id);
@@ -788,7 +788,7 @@ void EventList::paintItem(unsigned int pos, t_channel_id channel_idI)
g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMLARGE]->RenderString(x+10+iw, ypos+ fheight, width- 25- 20, evtlist[liststart+pos].description, color, 0, true);
}
}
void EventList::paintHead(t_channel_id _channel_id, std::string _channelname, std::string _channelname_prev, std::string _channelname_next)
void EventList::paintHead(std::string _channelname, std::string _channelname_prev, std::string _channelname_next)
{
const short font_h = 8;
int iw = 0, ih = 0;

View File

@@ -107,7 +107,7 @@ class EventList
void paintItem(unsigned pos, t_channel_id channel_id = 0);
void paint(t_channel_id channel_id = 0);
void paintHead(t_channel_id channel_id, std::string name);
void paintHead(t_channel_id _channel_id, std::string _channelname, std::string _channelname_prev, std::string _channelname_next);
void paintHead(std::string _channelname, std::string _channelname_prev, std::string _channelname_next);
void hide();
void showFunctionBar(bool show);
CTimerd::CTimerEventTypes isScheduled(t_channel_id channel_id, CChannelEvent * event, int * tID = NULL);

View File

@@ -426,7 +426,7 @@ const char *CFlashVersionInfo::getType(void) const
}
}
const int CFlashVersionInfo::getVersion(void) const
int CFlashVersionInfo::getVersion(void) const
{
return version;
}

View File

@@ -37,7 +37,7 @@ void CLastChannel::clear (void)
// -- Store only if channel != last channel and time store delay is large enough
// forceStoreToLastChannels default to false
void CLastChannel::store (int channel, t_channel_id channel_id, bool forceStoreToLastChannels)
void CLastChannel::store (int channel, t_channel_id channel_id, bool /* forceStoreToLastChannels */)
{
struct timeval tv;
unsigned long lastTimestamp(0);

View File

@@ -961,7 +961,7 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
}
return true;
}
bool CLedControlNotifier::changeNotify(const neutrino_locale_t, void * data)
bool CLedControlNotifier::changeNotify(const neutrino_locale_t, void* /*data*/)
{
CVFD::getInstance()->setled();
return true;