mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-01 10:46:23 -04:00
Fix Some gcc warnings 383 to 208 lines
Left explicit #warning and deprecated. Some lines are wrong indented and produce mal formed code.
This commit is contained in:
parent
74aa55e347
commit
674b6de381
63 changed files with 379 additions and 346 deletions
|
@ -554,7 +554,7 @@ void FeedReaderMessageWidget::updateCurrentMessage()
|
|||
{
|
||||
mTimer->stop();
|
||||
|
||||
long todo; // show link somewhere
|
||||
#warning FeedReaderMessageWidget.cpp TODO thunder2: show link somewhere
|
||||
|
||||
std::string msgId = currentMsgId();
|
||||
|
||||
|
|
|
@ -575,7 +575,6 @@
|
|||
<zorder>titleFrame</zorder>
|
||||
<zorder>splitter</zorder>
|
||||
<zorder>buttonBox</zorder>
|
||||
<zorder>transformationInfoScrollArea</zorder>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
|
|
@ -252,7 +252,7 @@ static bool getFavicon(CURLWrapper &CURL, const std::string &url, std::string &i
|
|||
isContentType(contentType, "application/octet-stream") ||
|
||||
isContentType(contentType, "text/plain")) {
|
||||
if (!vicon.empty()) {
|
||||
long todo; // check it
|
||||
#warning p3FeedReaderThread.cc TODO thunder2: check it
|
||||
result = toBase64(vicon, icon);
|
||||
}
|
||||
}
|
||||
|
@ -1299,7 +1299,7 @@ RsFeedReaderErrorState p3FeedReaderThread::processTransformation(const RsFeedRea
|
|||
|
||||
RsFeedReaderErrorState p3FeedReaderThread::processXPath(const std::list<std::string> &xpathsToUse, const std::list<std::string> &xpathsToRemove, HTMLWrapper &html, std::string &errorString)
|
||||
{
|
||||
long todo_fill_errorString;
|
||||
#warning p3FeedReaderThread.cc TODO thunder2: fill_errorString;
|
||||
|
||||
if (xpathsToUse.empty() && xpathsToRemove.empty()) {
|
||||
return RS_FEED_ERRORSTATE_OK;
|
||||
|
@ -1410,7 +1410,7 @@ RsFeedReaderErrorState p3FeedReaderThread::processXPath(const std::list<std::str
|
|||
RsFeedReaderErrorState result = RS_FEED_ERRORSTATE_OK;
|
||||
|
||||
/* process description */
|
||||
long todo; // encoding
|
||||
#warning p3FeedReaderThread.cc TODO thunder2: encoding
|
||||
HTMLWrapper html;
|
||||
if (html.readHTML(description.c_str(), "")) {
|
||||
xmlNodePtr root = html.getRootElement();
|
||||
|
|
|
@ -156,8 +156,8 @@ ChatWidgetHolder *VOIPPlugin::qt_get_chat_widget_holder(ChatWidget *chatWidget)
|
|||
|
||||
p3Service *VOIPPlugin::p3_service() const
|
||||
{
|
||||
if(mVOIP == NULL)
|
||||
rsVOIP = mVOIP = new p3VOIP(mPlugInHandler,mVOIPNotify) ; // , 3600 * 24 * 30 * 6); // 6 Months
|
||||
if(mVOIP == NULL)
|
||||
rsVOIP = mVOIP = new p3VOIP(mPlugInHandler,mVOIPNotify) ; // , 3600 * 24 * 30 * 6); // 6 Months
|
||||
|
||||
return mVOIP ;
|
||||
}
|
||||
|
|
|
@ -75,9 +75,10 @@ void avcodec_free_context(AVCodecContext **pavctx)
|
|||
//Since https://github.com/FFmpeg/FFmpeg/commit/7ecc2d403ce5c7b6ea3b1f368dccefd105209c7e
|
||||
static void get_frame_defaults(AVFrame *frame)
|
||||
{
|
||||
if (frame->extended_data != frame->data)
|
||||
if (frame->extended_data != frame->data) {
|
||||
av_freep(&frame->extended_data);
|
||||
return;
|
||||
}
|
||||
|
||||
frame->extended_data = NULL;
|
||||
get_frame_defaults(frame);
|
||||
|
@ -283,7 +284,7 @@ void VideoProcessor::receiveEncodedData(const RsVOIPDataChunk& chunk)
|
|||
// {
|
||||
_decoded_output_device->showFrame(img) ;
|
||||
// _lastTimeToShowFrame = time(NULL) ;//+ 1000/25;
|
||||
#warning "\plugins\VOIP\gui\VideoProcessor.cpp:210 TODO: Get CPU usage to pass image."
|
||||
#warning \plugins\VOIP\gui\VideoProcessor.cpp:210 Phenom: TODO: Get CPU usage to pass image.
|
||||
// }
|
||||
}
|
||||
|
||||
|
|
|
@ -770,7 +770,8 @@ bool p3VOIP::loadList(std::list<RsItem*>& load)
|
|||
RsConfigKeyValueSet *vitem = dynamic_cast<RsConfigKeyValueSet*>(*it) ;
|
||||
|
||||
if(vitem != NULL)
|
||||
for(std::list<RsTlvKeyValue>::const_iterator kit = vitem->tlvkvs.pairs.begin(); kit != vitem->tlvkvs.pairs.end(); ++kit)
|
||||
{
|
||||
for(std::list<RsTlvKeyValue>::const_iterator kit = vitem->tlvkvs.pairs.begin(); kit != vitem->tlvkvs.pairs.end(); ++kit)
|
||||
if(kit->key == "P3VOIP_CONFIG_ATRANSMIT")
|
||||
_atransmit = pop_int_value(kit->value) ;
|
||||
else if(kit->key == "P3VOIP_CONFIG_VOICEHOLD")
|
||||
|
@ -785,7 +786,7 @@ bool p3VOIP::loadList(std::list<RsItem*>& load)
|
|||
_min_loudness = pop_int_value(kit->value) ;
|
||||
else if(kit->key == "P3VOIP_CONFIG_ECHO_CNCL")
|
||||
_echo_cancel = pop_int_value(kit->value) ;
|
||||
|
||||
}
|
||||
delete vitem ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue