summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-04-24 21:38:16 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-04-24 21:38:16 +0200
commit4a1c086b8e006d59bd29b71dd5471e160d4e18ba (patch)
treebd5da9820d8dd0f7fea000b2d34e5ddc7f260c5e
parentMerge "Reboot the device on user build after the install fails" am: d6f436849d am: 4849c87033 am: 0cd8986bc2 (diff)
parentMerge "librecovery: Remove -Wno-unused-parameter and add -Wall." am: b6c9c41a3d am: 0cf72f0f14 (diff)
downloadandroid_bootable_recovery-4a1c086b8e006d59bd29b71dd5471e160d4e18ba.tar
android_bootable_recovery-4a1c086b8e006d59bd29b71dd5471e160d4e18ba.tar.gz
android_bootable_recovery-4a1c086b8e006d59bd29b71dd5471e160d4e18ba.tar.bz2
android_bootable_recovery-4a1c086b8e006d59bd29b71dd5471e160d4e18ba.tar.lz
android_bootable_recovery-4a1c086b8e006d59bd29b71dd5471e160d4e18ba.tar.xz
android_bootable_recovery-4a1c086b8e006d59bd29b71dd5471e160d4e18ba.tar.zst
android_bootable_recovery-4a1c086b8e006d59bd29b71dd5471e160d4e18ba.zip
-rw-r--r--Android.mk2
-rw-r--r--install.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index adf478f00..5e2dddec4 100644
--- a/Android.mk
+++ b/Android.mk
@@ -45,7 +45,7 @@ include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
install.cpp
-LOCAL_CFLAGS := -Wno-unused-parameter -Werror
+LOCAL_CFLAGS := -Wall -Werror
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)
ifeq ($(AB_OTA_UPDATER),true)
diff --git a/install.cpp b/install.cpp
index e5a59b832..e945d13ab 100644
--- a/install.cpp
+++ b/install.cpp
@@ -211,7 +211,7 @@ static int check_newer_ab_build(ZipArchiveHandle zip) {
return 0;
}
-int update_binary_command(const std::string& path, ZipArchiveHandle zip, int retry_count,
+int update_binary_command(const std::string& path, ZipArchiveHandle zip, int /* retry_count */,
int status_fd, std::vector<std::string>* cmd) {
CHECK(cmd != nullptr);
int ret = check_newer_ab_build(zip);