Skip to content

Commit

Permalink
remove compile error
Browse files Browse the repository at this point in the history
/home/user/gmapping_ws/src/openslam_gmapping/gridfastslam/gfs2rec.cpp: In member function ‘virtual void ResampleRecord::read(std::istream&)’:
/home/user/gmapping_ws/src/openslam_gmapping/gridfastslam/gfs2rec.cpp:148:17: error: redeclaration of ‘unsigned int i’
    unsigned int i;
                 ^
/home/user/gmapping_ws/src/openslam_gmapping/gridfastslam/gfs2rec.cpp:147:21: error: ‘unsigned int i’ previously declared here
   for (unsigned int i=0; i< dim; i++){
                     ^
make[2]: *** [CMakeFiles/gfs2rec.dir/gridfastslam/gfs2rec.cpp.o] Error 1
make[1]: *** [CMakeFiles/gfs2rec.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
  • Loading branch information
k-okada committed Mar 18, 2019
1 parent 9a6d130 commit e71e496
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gridfastslam/gfs2rec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ struct ResampleRecord: public Record{
virtual void read(istream& is){
is >> dim;
for (unsigned int i=0; i< dim; i++){
unsigned int i;
is >> i;
indexes.push_back(i);
unsigned int j;
is >> j;
indexes.push_back(j);
}
}
};
Expand Down

0 comments on commit e71e496

Please sign in to comment.