Skip to content

Commit 728b825

Browse files
committed
seeds sample: fix compiler warnings
the exact warnings are: /builds/precommit-contrib_macosx/opencv_contrib/modules/ximgproc/samples/seeds.cpp:32:6: warning: no previous prototype for function 'trackbarChanged' [-Wmissing-prototypes] /builds/precommit-contrib_macosx/opencv_contrib/modules/ximgproc/samples/seeds.cpp:32:26: warning: unused parameter 'pos' [-Wunused-parameter] /builds/precommit-contrib_macosx/opencv_contrib/modules/ximgproc/samples/seeds.cpp:32:37: warning: unused parameter 'data' [-Wunused-parameter]
1 parent 84ae22c commit 728b825

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/ximgproc/samples/seeds.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ using namespace cv;
1313
using namespace cv::ximgproc;
1414
using namespace std;
1515

16+
void trackbarChanged(int pos, void* data);
17+
1618
static void help()
1719
{
1820
cout << "\nThis program demonstrates SEEDS superpixels using OpenCV class SuperpixelSEEDS\n"
@@ -29,7 +31,7 @@ static const char* window_name = "SEEDS Superpixels";
2931

3032
static bool init = false;
3133

32-
void trackbarChanged(int pos, void* data)
34+
void trackbarChanged(int, void*)
3335
{
3436
init = false;
3537
}

0 commit comments

Comments
 (0)