Skip to content

Commit

Permalink
Fixed unused local variable warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Apr 5, 2014
1 parent aeebdc5 commit 2d8b86b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -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();
Expand Down
4 changes: 3 additions & 1 deletion src/main/android/SDL_android_main.c
Expand Up @@ -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);
Expand All @@ -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__ */
Expand Down

0 comments on commit 2d8b86b

Please sign in to comment.