Use -Werror in system/vold/tests

* Comment out unused function.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I7a23573af0d664a5f39f1cde3a22ac0001dac1ac
This commit is contained in:
Chih-Hung Hsieh 2017-10-19 11:51:20 -07:00
parent 4ddf576ca8
commit 8646da062a
2 changed files with 4 additions and 0 deletions

View file

@ -18,6 +18,7 @@ LOCAL_SRC_FILES := \
LOCAL_MODULE := vold_tests
LOCAL_MODULE_TAGS := eng tests
LOCAL_CFLAGS := -Wall -Werror
include $(BUILD_NATIVE_TEST)
include $(CLEAR_VARS)
@ -41,4 +42,5 @@ LOCAL_SRC_FILES := CryptfsScryptHidlizationEquivalence_test.cpp
LOCAL_MODULE := vold_cryptfs_scrypt_hidlization_equivalence_test
LOCAL_MODULE_TAGS := eng tests
LOCAL_CFLAGS := -Wall -Werror
include $(BUILD_NATIVE_TEST)

View file

@ -369,6 +369,7 @@ static int keymaster_check_compatibility_new()
return keymaster_compatibility_cryptfs_scrypt();
}
#if 0
/* Create a new keymaster key and store it in this footer */
static int keymaster_create_key_new(struct crypt_mnt_ftr *ftr)
{
@ -390,6 +391,7 @@ static int keymaster_create_key_new(struct crypt_mnt_ftr *ftr)
}
return 0;
}
#endif
/* This signs the given object using the keymaster key. */
static int keymaster_sign_object_new(struct crypt_mnt_ftr *ftr,