From 2d8b86bb07a4ea626a9c3f628b085403af869c3e Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 5 Apr 2014 23:24:33 +0200 Subject: [PATCH] Fixed unused local variable warning. --- android-project/src/org/libsdl/app/SDLActivity.java | 2 +- src/main/android/SDL_android_main.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/android-project/src/org/libsdl/app/SDLActivity.java b/android-project/src/org/libsdl/app/SDLActivity.java index 49a1d38f8a7bb..c5714eeea617c 100644 --- a/android-project/src/org/libsdl/app/SDLActivity.java +++ b/android-project/src/org/libsdl/app/SDLActivity.java @@ -270,7 +270,7 @@ boolean sendCommand(int command, Object data) { } // C functions we call - public static native void nativeInit(); + public static native int nativeInit(); public static native void nativeLowMemory(); public static native void nativeQuit(); public static native void nativePause(); diff --git a/src/main/android/SDL_android_main.c b/src/main/android/SDL_android_main.c index f932f317e082c..31e84e7126c81 100644 --- a/src/main/android/SDL_android_main.c +++ b/src/main/android/SDL_android_main.c @@ -17,7 +17,7 @@ extern void SDL_Android_Init(JNIEnv* env, jclass cls); /* Start up the SDL app */ -void Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject obj) +int Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject obj) { /* This interface could expand with ABI negotiation, calbacks, etc. */ SDL_Android_Init(env, cls); @@ -33,6 +33,8 @@ void Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject /* Do not issue an exit or the whole application will terminate instead of just the SDL thread */ /* exit(status); */ + + return status; } #endif /* __ANDROID__ */