Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix some Clang warnings generated building in Xcode 4.2.

  • Loading branch information...
commit d864c588c67c24fce0fb4c31d6f5265d7bbfb979 1 parent c350d08
@nriley authored
View
4 Source/NJRSpeechSynthesizer.m
@@ -86,7 +86,7 @@ - (id)initWithVoice:(NSString *)voice;
err = NewAUGraph(&graph);
if (err != noErr) goto fail;
- ComponentDescription outputDescription = {
+ AudioComponentDescription outputDescription = {
.componentType = kAudioUnitType_Output,
.componentSubType = kAudioUnitSubType_HALOutput,
.componentManufacturer = kAudioUnitManufacturer_Apple
@@ -106,7 +106,7 @@ - (id)initWithVoice:(NSString *)voice;
err = AudioUnitSetProperty(outputUnit, kAudioOutputUnitProperty_CurrentDevice, kAudioUnitScope_Global, 0, &outputDevice, sizeof(outputDevice));
if (err != noErr) goto fail;
- ComponentDescription speechSynthesisDescription = {
+ AudioComponentDescription speechSynthesisDescription = {
.componentType = kAudioUnitType_Generator,
.componentSubType = kAudioUnitSubType_SpeechSynthesis,
.componentManufacturer = kAudioUnitManufacturer_Apple
View
2  Source/PSAlarmAlertController.h
@@ -19,7 +19,7 @@ extern NSString * const PSAlarmAlertStopNotification;
+ (PSAlarmAlertController *)controllerWithTimerExpiredNotification:(NSNotification *)notification;
-+ (IBAction)stopAlerts:(id)sender;
++ (void)stopAlerts:(id)sender;
- (id)initWithAlarm:(PSAlarm *)alarm;
View
2  Source/PSAlarmAlertController.m
@@ -24,7 +24,7 @@ + (PSAlarmAlertController *)controllerWithTimerExpiredNotification:(NSNotificati
return [[[self alloc] initWithAlarm: [notification object]] autorelease];
}
-+ (IBAction)stopAlerts:(id)sender;
++ (void)stopAlerts:(id)sender;
{
[[NSNotificationCenter defaultCenter] postNotificationName: PSAlarmAlertStopNotification object: nil];
}
View
6 Source/PSAlarmsController.m
@@ -25,7 +25,7 @@ @implementation PSAlarmsController
- (void)alarmsChanged;
{
- reorderedAlarms = [[alarmList delegate] reorderedDataForData: [alarms alarms]];
+ reorderedAlarms = [(NJRTableDelegate *)[alarmList delegate] reorderedDataForData: [alarms alarms]];
}
- (id)init;
@@ -70,7 +70,7 @@ - (NSUndoManager *)undoManager;
- (void)_restoreAlarms:(NSSet *)selectedAlarms;
{
[alarms restoreAlarms: selectedAlarms];
- [[alarmList delegate] selectItems: selectedAlarms];
+ [(NJRTableDelegate *)[alarmList delegate] selectItems: selectedAlarms];
[[self undoManager] setActionName: NSLocalizedString(@"Alarm Removal", "Undo action")];
[[[self undoManager] prepareWithInvocationTarget: self] _removeAlarms: selectedAlarms];
}
@@ -84,7 +84,7 @@ - (void)_removeAlarms:(NSSet *)selectedAlarms;
- (IBAction)remove:(id)sender;
{
- [self _removeAlarms: [[alarmList delegate] selectedItems]];
+ [self _removeAlarms: [(NJRTableDelegate *)[alarmList delegate] selectedItems]];
}
- (void)selectAlarm:(PSAlarm *)alarm;
Please sign in to comment.
Something went wrong with that request. Please try again.