From 6b1d5f44613c6e7f14927e060247da8a25041116 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sun, 17 Jul 2016 21:42:53 +0200 Subject: [PATCH] Android: Fixed compile warning about a missing prototype (thanks, Sylvain!). Fixes Bugzilla #3351. --- src/main/android/SDL_android_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/android/SDL_android_main.c b/src/main/android/SDL_android_main.c index 8a85ccf13..671d9328e 100644 --- a/src/main/android/SDL_android_main.c +++ b/src/main/android/SDL_android_main.c @@ -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) {