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
07fe1cd6
Commit
07fe1cd6
authored
Jul 03, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
videoio: eliminate build warnings (clang)
parent
23700792
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
cap_gstreamer.cpp
modules/videoio/src/cap_gstreamer.cpp
+9
-0
No files found.
modules/videoio/src/cap_gstreamer.cpp
View file @
07fe1cd6
...
@@ -97,6 +97,11 @@ static void handleMessage(GstElement * pipeline);
...
@@ -97,6 +97,11 @@ static void handleMessage(GstElement * pipeline);
namespace
{
namespace
{
#if defined __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wunused-function"
#endif
template
<
typename
T
>
static
inline
void
GSafePtr_addref
(
T
*
ptr
)
template
<
typename
T
>
static
inline
void
GSafePtr_addref
(
T
*
ptr
)
{
{
if
(
ptr
)
if
(
ptr
)
...
@@ -125,6 +130,10 @@ template<> inline void GSafePtr_release<GstEncodingContainerProfile>(GstEncoding
...
@@ -125,6 +130,10 @@ template<> inline void GSafePtr_release<GstEncodingContainerProfile>(GstEncoding
template
<>
inline
void
GSafePtr_addref
<
char
>
(
char
*
pPtr
);
// declaration only. not defined. should not be used
template
<>
inline
void
GSafePtr_addref
<
char
>
(
char
*
pPtr
);
// declaration only. not defined. should not be used
template
<>
inline
void
GSafePtr_release
<
char
>
(
char
**
pPtr
)
{
if
(
pPtr
)
{
g_free
(
*
pPtr
);
*
pPtr
=
NULL
;
}
}
template
<>
inline
void
GSafePtr_release
<
char
>
(
char
**
pPtr
)
{
if
(
pPtr
)
{
g_free
(
*
pPtr
);
*
pPtr
=
NULL
;
}
}
#if defined __clang__
# pragma clang diagnostic pop
#endif
template
<
typename
T
>
template
<
typename
T
>
class
GSafePtr
class
GSafePtr
{
{
...
...
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