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
4c1ed138
Commit
4c1ed138
authored
Feb 18, 2014
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warning fixes for GCC 4.8.
parent
e8d26b02
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
13 deletions
+24
-13
color.cpp
modules/imgproc/src/color.cpp
+2
-2
floodfill.cpp
modules/imgproc/src/floodfill.cpp
+1
-1
imgwarp.cpp
modules/imgproc/src/imgwarp.cpp
+11
-1
test_convhull.cpp
modules/imgproc/test/test_convhull.cpp
+4
-4
bgfg_gaussmix.cpp
modules/legacy/src/bgfg_gaussmix.cpp
+2
-2
face.cpp
modules/legacy/src/face.cpp
+1
-0
lmeds.cpp
modules/legacy/src/lmeds.cpp
+2
-2
ts_arrtest.cpp
modules/ts/src/ts_arrtest.cpp
+1
-1
No files found.
modules/imgproc/src/color.cpp
View file @
4c1ed138
...
...
@@ -3214,7 +3214,7 @@ struct YUV420p2RGB888Invoker : ParallelLoopBody
const
int
rangeBegin
=
range
.
start
*
2
;
const
int
rangeEnd
=
range
.
end
*
2
;
size_
t
uvsteps
[
2
]
=
{
width
/
2
,
stride
-
width
/
2
};
in
t
uvsteps
[
2
]
=
{
width
/
2
,
stride
-
width
/
2
};
int
usIdx
=
ustepIdx
,
vsIdx
=
vstepIdx
;
const
uchar
*
y1
=
my1
+
rangeBegin
*
stride
;
...
...
@@ -3282,7 +3282,7 @@ struct YUV420p2RGBA8888Invoker : ParallelLoopBody
int
rangeBegin
=
range
.
start
*
2
;
int
rangeEnd
=
range
.
end
*
2
;
size_
t
uvsteps
[
2
]
=
{
width
/
2
,
stride
-
width
/
2
};
in
t
uvsteps
[
2
]
=
{
width
/
2
,
stride
-
width
/
2
};
int
usIdx
=
ustepIdx
,
vsIdx
=
vstepIdx
;
const
uchar
*
y1
=
my1
+
rangeBegin
*
stride
;
...
...
modules/imgproc/src/floodfill.cpp
View file @
4c1ed138
...
...
@@ -41,7 +41,7 @@
#include "precomp.hpp"
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
#if
defined(__GNUC__) &&
(__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
# pragma GCC diagnostic ignored "-Warray-bounds"
#endif
...
...
modules/imgproc/src/imgwarp.cpp
View file @
4c1ed138
...
...
@@ -1217,8 +1217,13 @@ public:
alpha
(
_alpha
),
_beta
(
__beta
),
ssize
(
_ssize
),
dsize
(
_dsize
),
ksize
(
_ksize
),
xmin
(
_xmin
),
xmax
(
_xmax
)
{
CV_Assert
(
ksize
<=
MAX_ESIZE
);
}
#if defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Warray-bounds"
#endif
virtual
void
operator
()
(
const
Range
&
range
)
const
{
int
dy
,
cn
=
src
.
channels
();
...
...
@@ -1267,6 +1272,9 @@ public:
vresize
(
(
const
WT
**
)
rows
,
(
T
*
)(
dst
.
data
+
dst
.
step
*
dy
),
beta
,
dsize
.
width
);
}
}
#if defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
# pragma GCC diagnostic pop
#endif
private
:
Mat
src
;
...
...
@@ -1274,7 +1282,9 @@ private:
const
int
*
xofs
,
*
yofs
;
const
AT
*
alpha
,
*
_beta
;
Size
ssize
,
dsize
;
int
ksize
,
xmin
,
xmax
;
const
int
ksize
,
xmin
,
xmax
;
resizeGeneric_Invoker
&
operator
=
(
const
resizeGeneric_Invoker
&
);
};
template
<
class
HResize
,
class
VResize
>
...
...
modules/imgproc/test/test_convhull.cpp
View file @
4c1ed138
...
...
@@ -1225,7 +1225,7 @@ CV_FitLineTest::CV_FitLineTest()
max_noise
=
0.05
;
}
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
#if
defined(__GNUC__) &&
(__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Warray-bounds"
#endif
...
...
@@ -1301,7 +1301,7 @@ void CV_FitLineTest::generate_point_set( void* pointsSet )
}
}
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
#if
defined(__GNUC__) &&
(__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
# pragma GCC diagnostic pop
#endif
...
...
@@ -1329,7 +1329,7 @@ void CV_FitLineTest::run_func()
cv
::
fitLine
(
cv
::
cvarrToMat
(
points
),
(
cv
::
Vec6f
&
)
line
[
0
],
dist_type
,
0
,
reps
,
aeps
);
}
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
#if
defined(__GNUC__) &&
(__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Warray-bounds"
#endif
...
...
@@ -1412,7 +1412,7 @@ _exit_:
return
code
;
}
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
#if
defined(__GNUC__) &&
(__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
# pragma GCC diagnostic pop
#endif
...
...
modules/legacy/src/bgfg_gaussmix.cpp
View file @
4c1ed138
...
...
@@ -415,7 +415,7 @@ CV_INLINE int _icvRemoveShadowGMM(float* data, int nD,
//IEEE Trans. on Pattern Analysis and Machine Intelligence, vol.26, no.5, pages 651-656, 2004
//http://www.zoranz.net/Publications/zivkovic2004PAMI.pdf
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
#if
defined(__GNUC__) &&
(__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
...
...
@@ -608,7 +608,7 @@ CV_INLINE int _icvUpdateGMM(float* data, int nD,
return
bBackground
;
}
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
#if
defined(__GNUC__) &&
(__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
# pragma GCC diagnostic pop
#endif
...
...
modules/legacy/src/face.cpp
View file @
4c1ed138
...
...
@@ -200,6 +200,7 @@ void RFace::CalculateError(FaceData * lpFaceData)
void
RFace
::
CreateFace
(
void
*
lpData
)
{
FaceData
Data
;
memset
(
&
Data
,
0
,
sizeof
(
FaceData
));
double
Error
=
MAX_ERROR
;
double
CurError
=
MAX_ERROR
;
...
...
modules/legacy/src/lmeds.cpp
View file @
4c1ed138
...
...
@@ -163,7 +163,7 @@ icvLMedS( int *points1, int *points2, int numPoints, CvMatrix3 * fundamentalMatr
/*===========================================================================*/
/*===========================================================================*/
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
#if
defined(__GNUC__) &&
(__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Warray-bounds"
#endif
...
...
@@ -328,7 +328,7 @@ icvCubic( double a2, double a1, double a0, double *squares )
return
CV_NO_ERR
;
}
/* icvCubic */
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
#if
defined(__GNUC__) &&
(__GNUC__ == 4) && (__GNUC_MINOR__ == 8)
# pragma GCC diagnostic pop
#endif
...
...
modules/ts/src/ts_arrtest.cpp
View file @
4c1ed138
...
...
@@ -122,7 +122,7 @@ void ArrayTest::get_test_array_types_and_sizes( int /*test_case_idx*/, vector<ve
}
static
const
int
icvTsTypeToDepth
[]
=
static
const
unsigned
int
icvTsTypeToDepth
[]
=
{
IPL_DEPTH_8U
,
IPL_DEPTH_8S
,
IPL_DEPTH_16U
,
IPL_DEPTH_16S
,
IPL_DEPTH_32S
,
IPL_DEPTH_32F
,
IPL_DEPTH_64F
...
...
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