diff options
author | Michael Bestas <mikeioannina@cyanogenmod.org> | 2016-01-09 05:23:08 +0200 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2018-01-26 00:49:34 +0100 |
commit | 24ab3649ec3055676652ac74f1e677e9b51ab24e (patch) | |
tree | b17cb02f0b263c5a8727c5eb675b3edc16bd6bf1 /jni | |
parent | d2b82d060f382c20b5411f1a12f80ef289d4c40c (diff) | |
download | android_packages_apps_Snap-24ab3649ec3055676652ac74f1e677e9b51ab24e.tar.gz android_packages_apps_Snap-24ab3649ec3055676652ac74f1e677e9b51ab24e.tar.bz2 android_packages_apps_Snap-24ab3649ec3055676652ac74f1e677e9b51ab24e.zip |
Snap: Fix jni compiler warnings
Change-Id: I091a8928a9a0674c54759ff8b384259d8f16793e
Diffstat (limited to 'jni')
-rw-r--r-- | jni/Android.mk | 6 | ||||
-rw-r--r-- | jni/feature_mos/src/mosaic/Log.h | 2 | ||||
-rw-r--r-- | jni/feature_stab/src/dbreg/dbstabsmooth.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/jni/Android.mk b/jni/Android.mk index 864eec05f..41e284f53 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -9,7 +9,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/feature_mos/src \ $(LOCAL_PATH)/feature_mos/src/mosaic -LOCAL_CFLAGS := -O3 -DNDEBUG -fstrict-aliasing +LOCAL_CFLAGS := -O3 -DNDEBUG -fstrict-aliasing -Wno-unused-parameter LOCAL_SRC_FILES := \ feature_mos_jni.cpp \ @@ -58,7 +58,7 @@ LOCAL_SDK_VERSION := 9 LOCAL_MODULE := libjni_snaptinyplanet LOCAL_SRC_FILES := tinyplanet.cc -LOCAL_CFLAGS += -ffast-math -O3 -funroll-loops +LOCAL_CFLAGS := -ffast-math -O3 -funroll-loops -Wno-unused-parameter LOCAL_ARM_MODE := arm include $(BUILD_SHARED_LIBRARY) @@ -70,6 +70,6 @@ LOCAL_SDK_VERSION := 9 LOCAL_MODULE := libjni_imageutil LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := image_util_jni.cpp -LOCAL_CFLAGS += -ffast-math -O3 -funroll-loops +LOCAL_CFLAGS += -ffast-math -O3 -funroll-loops -Wno-unused-parameter include $(BUILD_SHARED_LIBRARY) diff --git a/jni/feature_mos/src/mosaic/Log.h b/jni/feature_mos/src/mosaic/Log.h index cf6f14b18..52bc1d4c6 100644 --- a/jni/feature_mos/src/mosaic/Log.h +++ b/jni/feature_mos/src/mosaic/Log.h @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef LOG_H_ +#ifndef LOG_H #define LOG_H #include <android/log.h> diff --git a/jni/feature_stab/src/dbreg/dbstabsmooth.cpp b/jni/feature_stab/src/dbreg/dbstabsmooth.cpp index dffff8ab1..2bb5d2e50 100644 --- a/jni/feature_stab/src/dbreg/dbstabsmooth.cpp +++ b/jni/feature_stab/src/dbreg/dbstabsmooth.cpp @@ -136,7 +136,7 @@ bool db_StabilizationSmoother::smoothMotionAdaptive(/*VP_BIMG *bimg,*/int hsize, smoothFactor = minSmoothFactor; // Find the amount of motion that must be compensated so that no "border" pixels are seen in the stable video - for (smoothFactor = smoothFactor; smoothFactor >= minSmoothFactor; smoothFactor -= 0.01) { + for (; smoothFactor >= minSmoothFactor; smoothFactor -= 0.01) { // Compute the smoothed motion if(!smoothMotion(inmot, &tmpMotion, smoothFactor)) break; |