Removed harmless warnings

This commit is contained in:
Paolo Cignoni 2008-11-28 14:55:45 +00:00
parent 62c3f721aa
commit 928c8dd997
4 changed files with 6 additions and 6 deletions

View File

@ -93,7 +93,7 @@ public:
void clear(){ datasize = 0;}
const unsigned int & size() const { return datasize;}
const unsigned int size() const { return datasize;}
bool & operator [](const int & i){return data[i];}

View File

@ -125,8 +125,8 @@ Transform::Transform() {
}
Trackball::Trackball(): current_button(0), current_mode(NULL), inactive_mode(NULL),
dragging(false), spinnable(true), spinning(false),
history_size(10), last_time(0), fixedTimestepMode(false) {
dragging(false), last_time(0), spinnable(true), spinning(false),
history_size(10), fixedTimestepMode(false) {
setDefaultMapping ();
}

View File

@ -201,8 +201,8 @@ public:
~Trackball();
private:
// TriMesh cannot be copied. Use Append (see vcg/complex/trimesh/append.h)
Trackball operator =(const Trackball & m){}
// Trackball must not be copied. Use Append (see vcg/complex/trimesh/append.h)
Trackball operator =(const Trackball & /*m*/){ assert(0); return *this; }
public:
/*!
@brief Reset the trackball.

View File

@ -885,7 +885,7 @@ void NavigatorWasdMode::Animate(unsigned int msec, Trackball * tb){
vel = current_speed.Norm();
step_x += vel*sec;
float step_current_min = (float)fabs(sin( step_x*M_PI / step_length ))*step_height;
if (step_current<step_current_min); step_current=step_current_min;
if (step_current<step_current_min) step_current=step_current_min;
}
current_speed*=pow(dumping,sec);