Fixed unused local variable warning.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 05 Apr 2014 23:24:33 +0200
changeset 8694244c7784723b
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
     1.1 --- a/android-project/src/org/libsdl/app/SDLActivity.java	Sat Apr 05 23:22:21 2014 +0200
     1.2 +++ b/android-project/src/org/libsdl/app/SDLActivity.java	Sat Apr 05 23:24:33 2014 +0200
     1.3 @@ -270,7 +270,7 @@
     1.4      }
     1.5  
     1.6      // C functions we call
     1.7 -    public static native void nativeInit();
     1.8 +    public static native int nativeInit();
     1.9      public static native void nativeLowMemory();
    1.10      public static native void nativeQuit();
    1.11      public static native void nativePause();
     2.1 --- a/src/main/android/SDL_android_main.c	Sat Apr 05 23:22:21 2014 +0200
     2.2 +++ b/src/main/android/SDL_android_main.c	Sat Apr 05 23:24:33 2014 +0200
     2.3 @@ -17,7 +17,7 @@
     2.4  extern void SDL_Android_Init(JNIEnv* env, jclass cls);
     2.5  
     2.6  /* Start up the SDL app */
     2.7 -void Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject obj)
     2.8 +int Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject obj)
     2.9  {
    2.10      /* This interface could expand with ABI negotiation, calbacks, etc. */
    2.11      SDL_Android_Init(env, cls);
    2.12 @@ -33,6 +33,8 @@
    2.13  
    2.14      /* Do not issue an exit or the whole application will terminate instead of just the SDL thread */
    2.15      /* exit(status); */
    2.16 +
    2.17 +    return status;
    2.18  }
    2.19  
    2.20  #endif /* __ANDROID__ */