Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ea3dc789
Commit
ea3dc789
authored
Jan 28, 2019
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warnings produced by clang-9.0.0
parent
e2dbf054
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
15 deletions
+14
-15
persistence.hpp
modules/core/include/opencv2/core/persistence.hpp
+1
-1
persistence.cpp
modules/core/src/persistence.cpp
+0
-8
test_ptr.cpp
modules/core/test/test_ptr.cpp
+7
-0
gcompoundkernel.hpp
modules/gapi/include/opencv2/gapi/gcompoundkernel.hpp
+1
-1
camera.cpp
modules/stitching/src/camera.cpp
+1
-1
optical_flow_io.cpp
modules/video/src/optical_flow_io.cpp
+4
-4
No files found.
modules/core/include/opencv2/core/persistence.hpp
View file @
ea3dc789
...
...
@@ -320,7 +320,7 @@ public:
BASE64
=
64
,
//!< flag, write rawdata in Base64 by default. (consider using WRITE_BASE64)
WRITE_BASE64
=
BASE64
|
WRITE
,
//!< flag, enable both WRITE and BASE64
};
enum
enum
State
{
UNDEFINED
=
0
,
VALUE_EXPECTED
=
1
,
...
...
modules/core/src/persistence.cpp
View file @
ea3dc789
...
...
@@ -342,14 +342,6 @@ static inline void writeReal(uchar* p, double fval)
class
FileStorage
::
Impl
:
public
FileStorage_API
{
public
:
enum
State
{
UNDEFINED
=
0
,
VALUE_EXPECTED
=
1
,
NAME_EXPECTED
=
2
,
INSIDE_MAP
=
4
};
void
init
()
{
flags
=
0
;
...
...
modules/core/test/test_ptr.cpp
View file @
ea3dc789
...
...
@@ -160,7 +160,14 @@ TEST(Core_Ptr, assignment)
{
Ptr
<
Reporter
>
p1
(
new
Reporter
(
&
deleted1
));
#if defined(__clang__) && (__clang_major__ >= 9) && !defined(__APPLE__)
CV_DO_PRAGMA
(
GCC
diagnostic
push
)
CV_DO_PRAGMA
(
GCC
diagnostic
ignored
"-Wself-assign-overloaded"
)
#endif
p1
=
p1
;
#if defined(__clang__) && (__clang_major__ >= 9) && !defined(__APPLE__)
CV_DO_PRAGMA
(
GCC
diagnostic
pop
)
#endif
EXPECT_FALSE
(
deleted1
);
}
...
...
modules/gapi/include/opencv2/gapi/gcompoundkernel.hpp
View file @
ea3dc789
...
...
@@ -78,7 +78,7 @@ template<typename T> struct tuple_wrap_helper
template
<
typename
...
Objs
>
struct
tuple_wrap_helper
<
std
::
tuple
<
Objs
...
>>
{
static
std
::
tuple
<
Objs
...
>
get
(
std
::
tuple
<
Objs
...
>&&
objs
)
{
return
objs
;
}
static
std
::
tuple
<
Objs
...
>
get
(
std
::
tuple
<
Objs
...
>&&
objs
)
{
return
std
::
forward
<
std
::
tuple
<
Objs
...
>>
(
objs
)
;
}
};
template
<
typename
,
typename
,
typename
>
...
...
modules/stitching/src/camera.cpp
View file @
ea3dc789
...
...
@@ -66,7 +66,7 @@ Mat CameraParams::K() const
Mat_
<
double
>
k
=
Mat
::
eye
(
3
,
3
,
CV_64F
);
k
(
0
,
0
)
=
focal
;
k
(
0
,
2
)
=
ppx
;
k
(
1
,
1
)
=
focal
*
aspect
;
k
(
1
,
2
)
=
ppy
;
return
k
;
return
std
::
move
(
k
)
;
}
}
// namespace detail
...
...
modules/video/src/optical_flow_io.cpp
View file @
ea3dc789
...
...
@@ -52,12 +52,12 @@ CV_EXPORTS_W Mat readOpticalFlow( const String& path )
Mat_
<
Point2f
>
flow
;
std
::
ifstream
file
(
path
.
c_str
(),
std
::
ios_base
::
binary
);
if
(
!
file
.
good
()
)
return
flow
;
// no file - return empty matrix
return
std
::
move
(
flow
)
;
// no file - return empty matrix
float
tag
;
file
.
read
((
char
*
)
&
tag
,
sizeof
(
float
));
if
(
tag
!=
FLOW_TAG_FLOAT
)
return
flow
;
return
std
::
move
(
flow
)
;
int
width
,
height
;
...
...
@@ -76,14 +76,14 @@ CV_EXPORTS_W Mat readOpticalFlow( const String& path )
if
(
!
file
.
good
()
)
{
flow
.
release
();
return
flow
;
return
std
::
move
(
flow
)
;
}
flow
(
i
,
j
)
=
u
;
}
}
file
.
close
();
return
flow
;
return
std
::
move
(
flow
)
;
}
CV_EXPORTS_W
bool
writeOpticalFlow
(
const
String
&
path
,
InputArray
flow
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment