warning: local declaration of 'error' hides instance variable - Warning Cocoa Touch
I recieve this warning from xcode

'warning: local declaration of 'error' hides instance variable'



This is the code 

    - (IBAction)oneSoundC:(id)sender; {
    	if (oneAudioC && oneAudioC.playing) {
    		[oneAudioC stop];
    		[oneAudioC release];
    		oneAudioC = nil;
    		return;
        }    
    	NSString *path = [[NSBundle mainBundle] pathForResource:@"1c" ofType:@"mp3"];
        if (oneAudioC) [oneAudioC release];
    	NSError *error = nil;
        oneAudioC = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:&error];
    	if (error)
    		NSLog(@"%@",[error localizedDescription]);
    	oneAudioC.delegate = self;
    	[oneAudioC play];	
    	
    }


I think the error is mainly here

	if (error)
		NSLog(@"%@",[error localizedDescription]);
warning: local declaration of 'error' hides instance variable - Warning Cocoa Touch
===

I recieve this warning from xcode

'warning: local declaration of 'error' hides instance variable'



This is the code 

    - (IBAction)oneSoundC:(id)sender; {
    	if (oneAudioC && oneAudioC.playing) {
    		[oneAudioC stop];
    		[oneAudioC release];
    		oneAudioC = nil;
    		return;
        }    
    	NSString *path = [[NSBundle mainBundle] pathForResource:@"1c" ofType:@"mp3"];
        if (oneAudioC) [oneAudioC release];
    	NSError *error = nil;
        oneAudioC = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:&error];
    	if (error)
    		NSLog(@"%@",[error localizedDescription]);
    	oneAudioC.delegate = self;
    	[oneAudioC play];	
    	
    }


I think the error is mainly here

	if (error)
		NSLog(@"%@",[error localizedDescription]);