diff --git a/android/jni/main.cpp b/android/jni/main.cpp index 0d643495e..182b346b3 100644 --- a/android/jni/main.cpp +++ b/android/jni/main.cpp @@ -18,9 +18,6 @@ extern int main(int argc, char **argv); -void android_main(android_app *app) { - // Make sure glue isn't stripped. - app_dummy(); - +void android_main(android_app *) { main(0, NULL); } diff --git a/samples/android/jni/main.cpp b/samples/android/jni/main.cpp index 87580272f..0785a2bca 100644 --- a/samples/android/jni/main.cpp +++ b/samples/android/jni/main.cpp @@ -17,9 +17,7 @@ #include "android_native_app_glue.h" #include "animal_generated.h" // Includes "flatbuffers/flatbuffers.h". -void android_main(android_app *app) { - app_dummy(); - +void android_main(android_app *) { flatbuffers::FlatBufferBuilder builder; auto name = builder.CreateString("Dog"); auto sound = builder.CreateString("Bark");