aboutsummaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorfirefly24422015-09-16 15:35:30 -0500
committerfirefly24422015-09-16 15:35:30 -0500
commitafbb6c064c88d743d8a7d04b5dbfb4b0b1b2db7f (patch)
treec2fbdeb03b781b0b05b5a0c633f175269257f4ce /platform/android
parent889d21e0049a0e84d6d44db9b80193f93fd62f17 (diff)
downloadgodot-afbb6c064c88d743d8a7d04b5dbfb4b0b1b2db7f.tar.gz
godot-afbb6c064c88d743d8a7d04b5dbfb4b0b1b2db7f.tar.zst
godot-afbb6c064c88d743d8a7d04b5dbfb4b0b1b2db7f.zip
ran cppcheck, found unused variables
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/audio_driver_opensl.cpp3
-rw-r--r--platform/android/cpu-features.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/platform/android/audio_driver_opensl.cpp b/platform/android/audio_driver_opensl.cpp
index a08bc8943..761bef27a 100644
--- a/platform/android/audio_driver_opensl.cpp
+++ b/platform/android/audio_driver_opensl.cpp
@@ -236,13 +236,12 @@ void AudioDriverOpenSL::start(){
ERR_FAIL_COND( res !=SL_RESULT_SUCCESS );
/* Initialize arrays required[] and iidArray[] */
- int i;
SLboolean required[MAX_NUMBER_INTERFACES];
SLInterfaceID iidArray[MAX_NUMBER_INTERFACES];
#if 0
- for (i=0; i<MAX_NUMBER_INTERFACES; i++)
+ for (int i=0; i<MAX_NUMBER_INTERFACES; i++)
{
required[i] = SL_BOOLEAN_FALSE;
iidArray[i] = SL_IID_NULL;
diff --git a/platform/android/cpu-features.c b/platform/android/cpu-features.c
index 156d46472..9cdadd540 100644
--- a/platform/android/cpu-features.c
+++ b/platform/android/cpu-features.c
@@ -127,7 +127,7 @@ static __inline__ void x86_cpuid(int func, int values[4])
static int
get_file_size(const char* pathname)
{
- int fd, ret, result = 0;
+ int fd, result = 0;
char buffer[256];
fd = open(pathname, O_RDONLY);