Warning fixes

This commit is contained in:
Robert Osfield
2009-02-03 15:28:53 +00:00
parent abb63e3199
commit 734463fcc7
22 changed files with 107 additions and 22 deletions

View File

@@ -196,7 +196,7 @@ void Broadcaster::sync( void )
unsigned int size = sizeof( SOCKADDR_IN );
sendto( _so, (const char *)_buffer, _buffer_size, 0, (struct sockaddr *)&saddr, size );
int err = WSAGetLastError ();
int *dum = (int*) _buffer;
if (err!=0) fprintf( stderr, "Broadcaster::sync() - error %d\n",err );
#else
unsigned int size = sizeof( struct sockaddr_in );
sendto( _so, (const void *)_buffer, _buffer_size, 0, (struct sockaddr *)&saddr, size );

View File

@@ -386,7 +386,7 @@ class DataConverter
_swapBytes = !_swapBytes;
}
cameraPacket._masterKilled = readUInt();
cameraPacket._masterKilled = readUInt()!=0;
read(cameraPacket._matrix);
read(cameraPacket._frameStamp);

View File

@@ -142,7 +142,7 @@ void Receiver::sync( void )
recvfrom( _so, (char *)_buffer, _buffer_size, 0, (sockaddr*)&saddr, &size );
// recvfrom(sock_Receive, szMessage, 256, 0, (sockaddr*)&addr_Cli, &clilen)
int err = WSAGetLastError ();
int *dum = (int*) _buffer;
if (err!=0) fprintf( stderr, "Receiver::sync() - error %d\n",err );
while( select( _so+1, &fdset, 0L, 0L, &tv ) )
{

View File

@@ -230,6 +230,10 @@ protected:
}
ImageStreamList& _imageStreamList;
protected:
FindImageStreamsVisitor& operator = (const FindImageStreamsVisitor&) { return *this; }
};

View File

@@ -108,6 +108,11 @@ protected:
}
ImageStreamList& _imageStreamList;
protected:
FindImageStreamsVisitor& operator = (const FindImageStreamsVisitor&) { return *this; }
};

View File

@@ -290,7 +290,8 @@ bool TestRunner::visitEnter( TestSuite* pSuite )
namespace osgUtx{
struct isSpecified{
struct isSpecified
{
const std::string& pTestName_;
@@ -299,6 +300,10 @@ struct isSpecified{
bool operator()(const std::string& specifiedTest){
return pTestName_.find(specifiedTest) == 0;
}
protected:
isSpecified& operator = (const isSpecified&) { return *this; }
};
}

View File

@@ -386,6 +386,29 @@ its result, and a textual description of any problems.
class TestRecord
{
public:
TestRecord() {}
TestRecord(const TestRecord& rhs):
name_(rhs.name_),
start_(rhs.start_),
stop_(rhs.stop_),
result_(rhs.result_),
problem_(rhs.problem_)
{}
TestRecord& operator = (const TestRecord& rhs)
{
if (&rhs==this) return *this;
name_ = rhs.name_;
start_ = rhs.start_;
stop_ = rhs.stop_;
result_ = rhs.result_;
problem_ = rhs.problem_;
return *this;
}
void start();
void stop();
@@ -394,8 +417,6 @@ class TestRecord
void log(const std::exception& e);
void log(const std::string& s);
// Default copy construction and assignment are OK
// FIXME: Add accessors?
private: