Skip to content

Commit e49c429

Browse files
committed
viz: fix tests build
1 parent ef69235 commit e49c429

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

modules/viz/test/test_precomp.hpp

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,10 @@
4242
// * Anatoly Baksheev, Itseez Inc. myname.mysurname <> mycompany.com
4343
//
4444
//M*/
45+
#include "opencv2/ts.hpp"
4546

46-
#ifdef __GNUC__
47-
# pragma GCC diagnostic ignored "-Wmissing-declarations"
48-
# if defined __clang__ || defined __APPLE__
49-
# pragma GCC diagnostic ignored "-Wmissing-prototypes"
50-
# pragma GCC diagnostic ignored "-Wextra"
51-
# endif
52-
#endif
53-
54-
#ifndef __OPENCV_TEST_PRECOMP_HPP__
55-
#define __OPENCV_TEST_PRECOMP_HPP__
56-
57-
#include <opencv2/core/version.hpp>
5847
#include <opencv2/viz/vizcore.hpp>
5948

60-
namespace cv
61-
{
62-
Mat imread(const String& filename, int flags = 1);
63-
}
64-
65-
#if CV_MAJOR_VERSION < 3
66-
#include "opencv2/ts/ts.hpp"
67-
#else
68-
#include "opencv2/ts.hpp"
69-
#endif
70-
7149
#include <iostream>
7250
#include <fstream>
7351
#include <string>
@@ -108,5 +86,3 @@ namespace cv
10886
return 0.114 * chs[0] + 0.58 * chs[1] + 0.3 * chs[2];
10987
}
11088
}
111-
112-
#endif

modules/viz/test/test_tutorial2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using namespace cv;
44
using namespace std;
55

6-
void tutorial2()
6+
static void tutorial2()
77
{
88
/// Create a window
99
viz::Viz3d myWindow("Coordinate Frame");

modules/viz/test/test_tutorial3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using namespace std;
66
/**
77
* @function main
88
*/
9-
void tutorial3(bool camera_pov)
9+
static void tutorial3(bool camera_pov)
1010
{
1111
/// Create a window
1212
viz::Viz3d myWindow("Coordinate Frame");

0 commit comments

Comments
 (0)