summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2016-07-07 21:44:19 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-07-07 21:44:19 +0000
commit37a00df8cc4130aed1309039e31e84368ba066c8 (patch)
tree6d7b176c860e7ad2aefa532e1ba6c3dd67ef5a68
parentf6556f0b1c0a5ed13e7cbb2d7e05d2ca10d8811f (diff)
parentbbfd09ef0a45112c191c277bbd32689e03c9dfd5 (diff)
downloadopencv-37a00df8cc4130aed1309039e31e84368ba066c8.tar.gz
-rw-r--r--Android.mk19
-rw-r--r--cvaux/src/cvtexture.cpp4
2 files changed, 21 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index 5fe3a68..2d3c1ff 100644
--- a/Android.mk
+++ b/Android.mk
@@ -9,6 +9,8 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/cxcore/include
LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
+LOCAL_CFLAGS += -Wno-unused-parameter
+
# cxmathfuncs.cpp has implicit cast of int struct fields.
LOCAL_CLANG_CFLAGS += -Wno-c++11-narrowing
@@ -59,6 +61,11 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/cv/include
LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
+LOCAL_CFLAGS += -Wno-sizeof-pointer-memaccess \
+ -Wno-deprecated-register \
+ -Wno-sign-compare \
+ -Wno-parentheses-equality
+
LOCAL_SRC_FILES := \
cv/src/cvaccum.cpp \
cv/src/cvadapthresh.cpp \
@@ -140,6 +147,13 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/cvaux/include
LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
+LOCAL_CFLAGS += -Wno-unused-parameter \
+ -Wno-logical-op-parentheses \
+ -Wno-dangling-else \
+ -Wno-missing-field-initializers \
+ -Wno-self-assign \
+ -Wno-sizeof-pointer-memaccess
+
LOCAL_SRC_FILES := \
cvaux/src/camshift.cpp \
cvaux/src/cvaux.cpp \
@@ -203,6 +217,9 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/ml/include
LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
+LOCAL_CFLAGS += -Wno-logical-op-parentheses \
+ -Wno-tautological-compare
+
LOCAL_SRC_FILES := \
ml/src/ml.cpp \
ml/src/mlann_mlp.cpp \
@@ -237,6 +254,8 @@ LOCAL_SHARED_LIBRARIES += libjpeg
LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%) -DHAVE_JPEG
+LOCAL_CFLAGS += -Wno-unused-parameter -Wno-logical-op-parentheses
+
# grfmt_tiff.cpp has implicit cast of int struct fields.
LOCAL_CLANG_CFLAGS += -Wno-c++11-narrowing
diff --git a/cvaux/src/cvtexture.cpp b/cvaux/src/cvtexture.cpp
index 434baaf..0229161 100644
--- a/cvaux/src/cvtexture.cpp
+++ b/cvaux/src/cvtexture.cpp
@@ -515,8 +515,8 @@ icvCreateGLCMDescriptors_AllowDoubleNest( CvGLCM* destGLCM, int matrixIndex )
correlationStdDeviation += (actualSideLoop1-correlationMean) * (actualSideLoop1-correlationMean) * sideEntryValueSum;
}
- HXY1 =- HXY1;
- HXY2 =- HXY2;
+ HXY1 = -HXY1;
+ HXY2 = -HXY2;
descriptors[ CV_GLCMDESC_CORRELATIONINFO1 ] = ( HXY - HXY1 ) / ( correlationMean );
descriptors[ CV_GLCMDESC_CORRELATIONINFO2 ] = sqrt( 1.0 - exp( -2.0 * (HXY2 - HXY ) ) );