Merge pull request #2479 from firefly2442/cppcheck-unusedvars
ran cppcheck, found unused variables
This commit is contained in:
commit
b217e1417a
8 changed files with 3 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ Error AudioDriverBB10::init(const char* p_name) {
|
|||
dev_name = (char *) p_name;
|
||||
}
|
||||
printf("******** reconnecting to device %s\n", dev_name);
|
||||
int card, dev;
|
||||
int ret = snd_pcm_open_name(&pcm_handle, dev_name, SND_PCM_OPEN_PLAYBACK);
|
||||
ERR_FAIL_COND_V(ret < 0, FAILED);
|
||||
pcm_open = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue