am 37079e29: Merge "Frameworks/base: Wall Werror in packages"
* commit '37079e29171df20b6355244882dce9d745da55db': Frameworks/base: Wall Werror in packages
This commit is contained in:
@@ -18,8 +18,6 @@ LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
com_android_defcontainer_MeasurementUtils.cpp
|
||||
|
||||
@@ -37,4 +35,6 @@ LOCAL_STATIC_LIBRARIES := \
|
||||
LOCAL_MODULE := libdefcontainer_jni
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
namespace android {
|
||||
|
||||
static jlong native_measureDirectory(JNIEnv* env, jobject clazz, jstring directory) {
|
||||
static jlong native_measureDirectory(JNIEnv* env, jobject /* clazz */, jstring directory) {
|
||||
jlong ret = 0L;
|
||||
|
||||
const char* path = env->GetStringUTFChars(directory, NULL);
|
||||
@@ -65,7 +65,7 @@ int register_com_android_defcontainer(JNIEnv *env) {
|
||||
|
||||
} // namespace android
|
||||
|
||||
int JNI_OnLoad(JavaVM *jvm, void* reserved) {
|
||||
int JNI_OnLoad(JavaVM *jvm, void* /* reserved */) {
|
||||
JNIEnv *env;
|
||||
|
||||
if (jvm->GetEnv((void**)&env, JNI_VERSION_1_6)) {
|
||||
|
||||
@@ -16,4 +16,6 @@ LOCAL_SHARED_LIBRARIES := \
|
||||
LOCAL_MODULE := libprintspooler_jni
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
@@ -79,7 +79,7 @@ static void throwIllegalArgumentException(JNIEnv* env, char* message) {
|
||||
throwException(env, className, message);
|
||||
}
|
||||
|
||||
static void readBitmapPixels(JNIEnv* env, jclass clazz, jobject jbitmap, jint fd) {
|
||||
static void readBitmapPixels(JNIEnv* env, jclass /* clazz */, jobject jbitmap, jint fd) {
|
||||
// Read the info.
|
||||
AndroidBitmapInfo readInfo;
|
||||
bool read = readAllBytes(fd, (void*) &readInfo, sizeof(AndroidBitmapInfo));
|
||||
@@ -127,7 +127,7 @@ static void readBitmapPixels(JNIEnv* env, jclass clazz, jobject jbitmap, jint fd
|
||||
}
|
||||
}
|
||||
|
||||
static void writeBitmapPixels(JNIEnv* env, jclass clazz, jobject jbitmap, jint fd) {
|
||||
static void writeBitmapPixels(JNIEnv* env, jclass /* clazz */, jobject jbitmap, jint fd) {
|
||||
// Get the info.
|
||||
AndroidBitmapInfo info;
|
||||
int result = AndroidBitmap_getInfo(env, jbitmap, &info);
|
||||
|
||||
@@ -36,4 +36,6 @@ LOCAL_SHARED_LIBRARIES := \
|
||||
LOCAL_MODULE := libjni_pacprocessor
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
@@ -60,7 +60,7 @@ jstring string16ToJstring(JNIEnv* env, String16 string) {
|
||||
return env->NewString(str, len);
|
||||
}
|
||||
|
||||
static jboolean com_android_pacprocessor_PacNative_createV8ParserNativeLocked(JNIEnv* env,
|
||||
static jboolean com_android_pacprocessor_PacNative_createV8ParserNativeLocked(JNIEnv* /* env */,
|
||||
jobject) {
|
||||
if (proxyResolver == NULL) {
|
||||
logger = new ProxyErrorLogger();
|
||||
@@ -72,7 +72,7 @@ static jboolean com_android_pacprocessor_PacNative_createV8ParserNativeLocked(JN
|
||||
return JNI_TRUE;
|
||||
}
|
||||
|
||||
static jboolean com_android_pacprocessor_PacNative_destroyV8ParserNativeLocked(JNIEnv* env,
|
||||
static jboolean com_android_pacprocessor_PacNative_destroyV8ParserNativeLocked(JNIEnv* /* env *,
|
||||
jobject) {
|
||||
if (proxyResolver != NULL) {
|
||||
delete logger;
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace android {
|
||||
|
||||
using namespace android;
|
||||
|
||||
extern "C" jint JNI_OnLoad(JavaVM* vm, void* reserved) {
|
||||
extern "C" jint JNI_OnLoad(JavaVM* vm, void* /* reserved */) {
|
||||
JNIEnv *env;
|
||||
if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) {
|
||||
ALOGE("ERROR: GetEnv failed");
|
||||
|
||||
Reference in New Issue
Block a user