Warning fixes
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -386,7 +386,7 @@ class DataConverter
|
||||
_swapBytes = !_swapBytes;
|
||||
}
|
||||
|
||||
cameraPacket._masterKilled = readUInt();
|
||||
cameraPacket._masterKilled = readUInt()!=0;
|
||||
|
||||
read(cameraPacket._matrix);
|
||||
read(cameraPacket._frameStamp);
|
||||
|
||||
@@ -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 ) )
|
||||
{
|
||||
|
||||
@@ -230,6 +230,10 @@ protected:
|
||||
}
|
||||
|
||||
ImageStreamList& _imageStreamList;
|
||||
|
||||
protected:
|
||||
|
||||
FindImageStreamsVisitor& operator = (const FindImageStreamsVisitor&) { return *this; }
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -108,6 +108,11 @@ protected:
|
||||
}
|
||||
|
||||
ImageStreamList& _imageStreamList;
|
||||
|
||||
protected:
|
||||
|
||||
FindImageStreamsVisitor& operator = (const FindImageStreamsVisitor&) { return *this; }
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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; }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user