# HG changeset patch # User Philipp Wiesemann # Date 1468784573 -7200 # Node ID 136b3507f669289fc014c7da554060c5542466f7 # Parent 623c40e8fd6564be3594fb0c2b49b87acfee56b6 Android: Fixed compile warning about a missing prototype (thanks, Sylvain!). Fixes Bugzilla #3351. diff -r 623c40e8fd65 -r 136b3507f669 src/main/android/SDL_android_main.c --- a/src/main/android/SDL_android_main.c Sun Jul 17 20:32:44 2016 +0200 +++ b/src/main/android/SDL_android_main.c Sun Jul 17 21:42:53 2016 +0200 @@ -16,6 +16,9 @@ /* Called before SDL_main() to initialize JNI bindings in SDL library */ extern void SDL_Android_Init(JNIEnv* env, jclass cls); +/* This prototype is needed to prevent a warning about the missing prototype for global function below */ +JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject array); + /* Start up the SDL app */ JNIEXPORT int JNICALL Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject array) {