mirror of
https://github.com/opencv/opencv.git
synced 2025-01-19 06:53:50 +08:00
fix GCC 4.9 warnings
This commit is contained in:
parent
869dda4117
commit
42ba5c7d16
@ -95,6 +95,8 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
add_extra_compiler_option(-Wno-narrowing)
|
add_extra_compiler_option(-Wno-narrowing)
|
||||||
add_extra_compiler_option(-Wno-delete-non-virtual-dtor)
|
add_extra_compiler_option(-Wno-delete-non-virtual-dtor)
|
||||||
add_extra_compiler_option(-Wno-unnamed-type-template-args)
|
add_extra_compiler_option(-Wno-unnamed-type-template-args)
|
||||||
|
add_extra_compiler_option(-Wno-array-bounds)
|
||||||
|
add_extra_compiler_option(-Wno-aggressive-loop-optimizations)
|
||||||
endif()
|
endif()
|
||||||
add_extra_compiler_option(-fdiagnostics-show-option)
|
add_extra_compiler_option(-fdiagnostics-show-option)
|
||||||
|
|
||||||
|
@ -166,10 +166,10 @@ cvTsDistTransform( const CvMat* _src, CvMat* _dst, int dist_type,
|
|||||||
int i, j, k;
|
int i, j, k;
|
||||||
int width = _src->cols, height = _src->rows;
|
int width = _src->cols, height = _src->rows;
|
||||||
const float init_val = 1e6;
|
const float init_val = 1e6;
|
||||||
float mask[3];
|
float mask[3] = { 0 };
|
||||||
CvMat* temp;
|
CvMat* temp;
|
||||||
int ofs[16];
|
int ofs[16] = { 0 };
|
||||||
float delta[16];
|
float delta[16] = { 0 };
|
||||||
int tstep, count;
|
int tstep, count;
|
||||||
|
|
||||||
assert( mask_size == 3 || mask_size == 5 );
|
assert( mask_size == 3 || mask_size == 5 );
|
||||||
|
Loading…
Reference in New Issue
Block a user