Skip to content

Commit

Permalink
Merge pull request #12 from Rezzie/master
Browse files Browse the repository at this point in the history
Fixed compiler warnings when using Clang.
  • Loading branch information
rtv committed Sep 23, 2011
2 parents 614449e + aadd1f6 commit 991c5d9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
14 changes: 4 additions & 10 deletions examples/ctrl/astar/findpath.cpp
Expand Up @@ -27,16 +27,10 @@ static unsigned int _map_width=0, _map_height=0;
uint8_t GetMap( unsigned int x, unsigned int y )
{
assert(_map);

if( x < 0 ||
x >= _map_width ||
y < 0 ||
y >= _map_height
)
{
return 9;
}


if(x >= _map_width || y >= _map_height)
return 9;

return _map[(y*_map_width)+x];
}

Expand Down
2 changes: 1 addition & 1 deletion libstage/ancestor.cc
Expand Up @@ -56,7 +56,7 @@ void Ancestor::RemoveChild( Model* mod )
EraseAll( mod, children );
}

Pose Ancestor::GetGlobalPose()
Pose Ancestor::GetGlobalPose() const
{
Pose pose;
memset( &pose, 0, sizeof(pose));
Expand Down
4 changes: 2 additions & 2 deletions libstage/stage.hh
Expand Up @@ -714,8 +714,8 @@ namespace Stg

virtual void AddChild( Model* mod );
virtual void RemoveChild( Model* mod );
virtual Pose GetGlobalPose();
virtual Pose GetGlobalPose() const;

const char* Token(){ return token.c_str(); }

const std::string& TokenStr(){ return token; }
Expand Down
2 changes: 2 additions & 0 deletions libstageplugin/p_driver.h
Expand Up @@ -108,6 +108,8 @@ class InterfaceModel

virtual void Subscribe( void );
virtual void Unsubscribe( void );
virtual void Subscribe( QueuePointer &queue );
virtual void Unsubscribe( QueuePointer &queue );

protected:
Stg::Model* mod;
Expand Down

0 comments on commit 991c5d9

Please sign in to comment.