Commit 65a4adb3 authored by Aleksandr Bakhshiev's avatar Aleksandr Bakhshiev
Browse files

Some warnings removed #5

--HG--
branch : MockCompsTest
parent e31068f5c01a
...@@ -1232,9 +1232,9 @@ bool UProjectResultsUploadingThread::UploadResultsViaFtp() ...@@ -1232,9 +1232,9 @@ bool UProjectResultsUploadingThread::UploadResultsViaFtp()
UProjectDeployerQt::UProjectDeployerQt(void): UProjectDeployerQt::UProjectDeployerQt(void):
db(NULL), db(NULL),
deployProcessingThread(NULL), deployProcessingThread(NULL),
projectResultsUploadingThread(NULL), preparationResult(-1),
deploymentState(DS_NULL), deploymentState(DS_NULL),
preparationResult(-1) projectResultsUploadingThread(NULL)
{ {
// curl, // curl,
// ? // ?
......
...@@ -804,7 +804,7 @@ std::string URpcDecoderCommonQt::ARemoteCall(const std::string &cmd, RDK::USerSt ...@@ -804,7 +804,7 @@ std::string URpcDecoderCommonQt::ARemoteCall(const std::string &cmd, RDK::USerSt
else else
return_value=2001; return_value=2001;
if(return_value=2001) if(return_value == 2001)
{ {
return URpcDecoderCommon::ARemoteCall(cmd, xml, component_name, channel_index, return_value); return URpcDecoderCommon::ARemoteCall(cmd, xml, component_name, channel_index, return_value);
} }
......
...@@ -93,7 +93,6 @@ UEPtr<URpcCommand> URpcDispatcherQueues::PopProcessedCommand(void) ...@@ -93,7 +93,6 @@ UEPtr<URpcCommand> URpcDispatcherQueues::PopProcessedCommand(void)
{ {
boost::mutex::scoped_lock lock(ProcessedCommandQueueMutex); boost::mutex::scoped_lock lock(ProcessedCommandQueueMutex);
UEPtr<URpcCommand> result; UEPtr<URpcCommand> result;
std::list<UEPtr<URpcCommand> >::iterator I=ProcessedCommandQueue.begin();
if(ProcessedCommandQueue.begin() != ProcessedCommandQueue.end()) if(ProcessedCommandQueue.begin() != ProcessedCommandQueue.end())
{ {
......
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#ifndef UTESTMANAGER_CPP
#pragma hdrstop #define UTESTMANAGER_CPP
#include "UTestManager.h" #include "UTestManager.h"
#include "UApplication.h" #include "UApplication.h"
...@@ -497,3 +497,5 @@ int UTestManager::DecodeTestFile(const std::string &test_file_name, UTest &test) ...@@ -497,3 +497,5 @@ int UTestManager::DecodeTestFile(const std::string &test_file_name, UTest &test)
// -------------------- // --------------------
} }
#endif
...@@ -59,8 +59,9 @@ UPVariable::~UPVariable(void) ...@@ -59,8 +59,9 @@ UPVariable::~UPVariable(void)
// //
// -------------------------- // --------------------------
UContainer::UContainer(void) UContainer::UContainer(void)
: Id(0), Activity(false), Coord(0), PComponents(0), NumComponents(0), LastId(0), : Id(0), Activity(false), MemoryMonitor("MemoryMonitor",this,&UContainer::SetMemoryMonitor),
MemoryMonitor("MemoryMonitor",this,&UContainer::SetMemoryMonitor) Coord(0), PComponents(0), NumComponents(0), LastId(0)
{ {
AddLookupProperty("Id",ptParameter | pgSystem,new UVProperty<UId,UContainer>(this,&UContainer::SetId,&UContainer::GetId)); AddLookupProperty("Id",ptParameter | pgSystem,new UVProperty<UId,UContainer>(this,&UContainer::SetId,&UContainer::GetId));
AddLookupProperty("Name",ptParameter | pgSystem,new UVProperty<NameT,UContainer>(this,&UContainer::SetName,&UContainer::GetName)); AddLookupProperty("Name",ptParameter | pgSystem,new UVProperty<NameT,UContainer>(this,&UContainer::SetName,&UContainer::GetName));
...@@ -2608,7 +2609,7 @@ void UContainer::DelAllControllers(bool forchilds) ...@@ -2608,7 +2609,7 @@ void UContainer::DelAllControllers(bool forchilds)
void UContainer::UnLinkAllControllers(bool forchilds) void UContainer::UnLinkAllControllers(bool forchilds)
{ {
while(Controllers.begin() != Controllers.end()) while(Controllers.begin() != Controllers.end())
Controllers.front()->UnLink(this); Controllers.front()->UnLink(forchilds);
if(forchilds) if(forchilds)
{ {
......
...@@ -168,7 +168,7 @@ const type_info& UControllerData::GetDataType(void) const ...@@ -168,7 +168,7 @@ const type_info& UControllerData::GetDataType(void) const
// ***************************************************************** // *****************************************************************
UControllerDataReader::UControllerDataReader(void) UControllerDataReader::UControllerDataReader(void)
: MRow(0), MCol(0), PropertyType(0) : PropertyType(0), MRow(0), MCol(0)
{ {
} }
......
...@@ -1680,7 +1680,8 @@ void UStorage::PushObject(const UId &classid, UEPtr<UContainer> object) ...@@ -1680,7 +1680,8 @@ void UStorage::PushObject(const UId &classid, UEPtr<UContainer> object)
UInstancesStorage &instances=ObjectsStorage[classid]; UInstancesStorage &instances=ObjectsStorage[classid];
UInstancesStorageElement element(object,true); UInstancesStorageElement element(object,true);
list<UInstancesStorageElement>::iterator instI=instances.insert(instances.end(),element); instances.insert(instances.end(),element);
//list<UInstancesStorageElement>::iterator instI=instances.insert(instances.end(),element);
//object->SetObjectIterator(&(*instI)); //object->SetObjectIterator(&(*instI));
object->SetClass(classid); object->SetClass(classid);
......
...@@ -12,7 +12,7 @@ void RdkDummyFunc(void); ...@@ -12,7 +12,7 @@ void RdkDummyFunc(void);
extern RDK::UStorage* CreateNewStorage(void) extern RDK::UStorage* CreateNewStorage(void)
{ {
#ifdef __GNUC__ #ifdef __GNUC__
RDK::RdkDummyFunc(); // RDK::RdkDummyFunc();
#endif #endif
return new RDK::UStorage; return new RDK::UStorage;
} }
......
...@@ -17,13 +17,13 @@ namespace Ui { ...@@ -17,13 +17,13 @@ namespace Ui {
variable's memory when passed in to it from an app like this. */ variable's memory when passed in to it from an app like this. */
static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream) static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream)
{ {
curl_off_t nread; // curl_off_t nread;
/* in real-world cases, this would probably get this data differently /* in real-world cases, this would probably get this data differently
as this fread() stuff is exactly what the library already would do as this fread() stuff is exactly what the library already would do
by default internally */ by default internally */
size_t retcode = fread(ptr, size, nmemb, (FILE*)stream); size_t retcode = fread(ptr, size, nmemb, (FILE*)stream);
nread = (curl_off_t)retcode; // nread = (curl_off_t)retcode;
/*fprintf(stderr, "*** We read %" CURL_FORMAT_CURL_OFF_T /*fprintf(stderr, "*** We read %" CURL_FORMAT_CURL_OFF_T
" bytes from file\n", nread);*/ " bytes from file\n", nread);*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment