Commit 4223df69 authored by Maksim Shabunin's avatar Maksim Shabunin

Fixed samples compilation warnings (no previous declaration)

parent 4cb11f23
...@@ -28,7 +28,7 @@ static void help() { ...@@ -28,7 +28,7 @@ static void help() {
} }
int getdir(const string _filename, vector<String> &files) static int getdir(const string _filename, vector<String> &files)
{ {
ifstream myfile(_filename.c_str()); ifstream myfile(_filename.c_str());
if (!myfile.is_open()) { if (!myfile.is_open()) {
......
...@@ -50,8 +50,7 @@ static void help() { ...@@ -50,8 +50,7 @@ static void help() {
* values will be (-1,-1). * values will be (-1,-1).
*/ */
void static void parser_2D_tracks(const String &_filename, std::vector<Mat> &points2d )
parser_2D_tracks(const String &_filename, std::vector<Mat> &points2d )
{ {
ifstream myfile(_filename.c_str()); ifstream myfile(_filename.c_str());
...@@ -109,7 +108,7 @@ parser_2D_tracks(const String &_filename, std::vector<Mat> &points2d ) ...@@ -109,7 +108,7 @@ parser_2D_tracks(const String &_filename, std::vector<Mat> &points2d )
bool camera_pov = false; bool camera_pov = false;
void keyboard_callback(const viz::KeyboardEvent &event, void* cookie) static void keyboard_callback(const viz::KeyboardEvent &event, void* cookie)
{ {
if ( event.action == 0 &&!event.symbol.compare("s") ) if ( event.action == 0 &&!event.symbol.compare("s") )
camera_pov = !camera_pov; camera_pov = !camera_pov;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment