Fixed unused local variable warning.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 05 Apr 2014 23:24:33 +0200
changeset 8694 244c7784723b
parent 8693 3307abdb7fe2
child 8695 a672c01a4ab7
Fixed unused local variable warning.
android-project/src/org/libsdl/app/SDLActivity.java
src/main/android/SDL_android_main.c
--- a/android-project/src/org/libsdl/app/SDLActivity.java	Sat Apr 05 23:22:21 2014 +0200
+++ b/android-project/src/org/libsdl/app/SDLActivity.java	Sat Apr 05 23:24:33 2014 +0200
@@ -270,7 +270,7 @@
     }
 
     // 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();
--- a/src/main/android/SDL_android_main.c	Sat Apr 05 23:22:21 2014 +0200
+++ b/src/main/android/SDL_android_main.c	Sat Apr 05 23:24:33 2014 +0200
@@ -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 @@
 
     /* Do not issue an exit or the whole application will terminate instead of just the SDL thread */
     /* exit(status); */
+
+    return status;
 }
 
 #endif /* __ANDROID__ */