Explorar el Código

Android: Fixed two warnings about unused variables.

Philipp Wiesemann hace 9 años
padre
commit
85588ea040
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      src/core/android/SDL_android.c

+ 0 - 2
src/core/android/SDL_android.c

@@ -718,10 +718,8 @@ void Android_JNI_FlushCapturedAudio(void)
     }
     #else
     if (captureBuffer16Bit) {
-        const jint len = (*env)->GetArrayLength(env, (jshortArray)captureBuffer);
         (*env)->CallStaticIntMethod(env, mActivityClass, midCaptureReadShortBuffer, (jshortArray)captureBuffer, JNI_FALSE);
     } else {
-        const jint len = (*env)->GetArrayLength(env, (jbyteArray)captureBuffer);
         (*env)->CallStaticIntMethod(env, mActivityClass, midCaptureReadByteBuffer, (jbyteArray)captureBuffer, JNI_FALSE);
     }
     #endif