From cd75a365870fb07748b28e83443f13865253e2ac Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Fri, 23 Aug 2019 14:31:31 -0700 Subject: [PATCH] Android: remove app_dummy() calls Change-Id: I0ebd4502f98d009ce5afe8c8bafb629284f0366c --- android/jni/main.cpp | 5 +---- samples/android/jni/main.cpp | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) 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");