viz: eliminate warnings from tutorial code
authorAlexander Alekhin <alexander.alekhin@intel.com>
Fri, 21 Oct 2016 15:22:07 +0000 (18:22 +0300)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Fri, 25 Nov 2016 06:07:38 +0000 (09:07 +0300)
samples/cpp/tutorial_code/viz/creating_widgets.cpp
samples/cpp/tutorial_code/viz/launching_viz.cpp
samples/cpp/tutorial_code/viz/transformations.cpp
samples/cpp/tutorial_code/viz/widget_pose.cpp

index 9ee6c54..db6fb48 100644 (file)
@@ -24,7 +24,7 @@ using namespace std;
  * @function help
  * @brief Display instructions to use this tutorial program
  */
-void help()
+static void help()
 {
     cout
     << "--------------------------------------------------------------------------"   << endl
index 55a3dde..4cc90fe 100644 (file)
@@ -14,7 +14,7 @@ using namespace std;
  * @function help
  * @brief Display instructions to use this tutorial program
  */
-void help()
+static void help()
 {
     cout
     << "--------------------------------------------------------------------------" << endl
index d8713fd..fe26c4e 100644 (file)
@@ -15,7 +15,7 @@ using namespace std;
  * @function help
  * @brief Display instructions to use this tutorial program
  */
-void help()
+static void help()
 {
     cout
     << "--------------------------------------------------------------------------"   << endl
@@ -31,7 +31,7 @@ void help()
  * @function cvcloud_load
  * @brief load bunny.ply
  */
-Mat cvcloud_load()
+static Mat cvcloud_load()
 {
     Mat cloud(1, 1889, CV_32FC3);
     ifstream ifs("bunny.ply");
index 3ecead8..d36f4fe 100644 (file)
@@ -15,7 +15,7 @@ using namespace std;
  * @function help
  * @brief Display instructions to use this tutorial program
  */
-void help()
+static void help()
 {
     cout
     << "--------------------------------------------------------------------------"   << endl