I don't know why its returning those warning when before, with the same code in the playSound function, the one you quoted, I didn't have the addition in the array the code compiled but my program was broken, and after the addition was put in the array the program worked. So something is happening there.