Fix Android build warnings
This commit is contained in:
parent
b8767f5fbe
commit
b8adc04545
2
3rdparty/openexr/CMakeLists.txt
vendored
2
3rdparty/openexr/CMakeLists.txt
vendored
@ -37,7 +37,7 @@ endif()
|
||||
source_group("Include" FILES ${lib_hdrs} )
|
||||
source_group("Src" FILES ${lib_srcs})
|
||||
|
||||
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wshadow -Wunused -Wsign-compare -Wundef -Wmissing-declarations -Wuninitialized -Wswitch -Wparentheses)
|
||||
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wshadow -Wunused -Wsign-compare -Wundef -Wmissing-declarations -Wuninitialized -Wswitch -Wparentheses -Warray-bounds -Wextra)
|
||||
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4018 /wd4099 /wd4100 /wd4101 /wd4127 /wd4189 /wd4245 /wd4305 /wd4389 /wd4512 /wd4701 /wd4702 /wd4706 /wd4800) # vs2005
|
||||
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4334) # vs2005 Win64
|
||||
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4244) # vs2008
|
||||
|
@ -1182,7 +1182,7 @@ BriskScaleSpace::refine3D(const int layer, const int x_layer, const int y_layer,
|
||||
const int center = thisLayer.getAgastScore(x_layer, y_layer, 1);
|
||||
|
||||
// check and get above maximum:
|
||||
float delta_x_above, delta_y_above;
|
||||
float delta_x_above = 0, delta_y_above = 0;
|
||||
float max_above = getScoreMaxAbove(layer, x_layer, y_layer, center, ismax, delta_x_above, delta_y_above);
|
||||
|
||||
if (!ismax)
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#ifdef ANDROID
|
||||
# include <android/api-level.h>
|
||||
# define GTEST_HAS_CLONE (__ANDROID_API__ > 7 && __arm__)
|
||||
# define GTEST_HAS_CLONE (__ANDROID_API__ > 7 && !defined __i386__)
|
||||
# define GTEST_HAS_POSIX_RE (__ANDROID_API__ > 7)
|
||||
# if defined _GLIBCXX_USE_WCHAR_T && _GLIBCXX_USE_WCHAR_T
|
||||
# define GTEST_HAS_STD_WSTRING 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user