From 4b6b7164dd543edd6e171ad335ac865e6032c5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=CC=81s=CC=8C=20Znamena=CC=81c=CC=8Cek?= Date: Fri, 9 Sep 2011 15:37:31 +0200 Subject: [PATCH] Got rid of several harmless Clang warnings. --- Decoder/FISoundSample.m | 2 +- Finch/FIErrorReporter.m | 2 +- Finch/FIRevolverSound.m | 2 +- Finch/FISound.m | 2 +- Finch/FISoundEngine.m | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Decoder/FISoundSample.m b/Decoder/FISoundSample.m index acf6d60..06c9e77 100644 --- a/Decoder/FISoundSample.m +++ b/Decoder/FISoundSample.m @@ -5,7 +5,7 @@ @implementation FISoundSample - (id) init { - [super init]; + self = [super init]; channels = bitsPerChannel = sampleRate = duration = -1; endianity = kEndianityUnknown; return self; diff --git a/Finch/FIErrorReporter.m b/Finch/FIErrorReporter.m index 32a891c..b75db6f 100644 --- a/Finch/FIErrorReporter.m +++ b/Finch/FIErrorReporter.m @@ -14,7 +14,7 @@ @implementation FIErrorReporter - (id) initWithDomain: (NSString*) errDomain error: (NSError**) error { - [super init]; + self = [super init]; domain = [errDomain retain]; if (error == NULL) error = &dummyError; diff --git a/Finch/FIRevolverSound.m b/Finch/FIRevolverSound.m index 4201cd8..3af790a 100644 --- a/Finch/FIRevolverSound.m +++ b/Finch/FIRevolverSound.m @@ -11,7 +11,7 @@ @implementation FIRevolverSound - (id) initWithVoices: (NSArray*) newVoices { - [super init]; + self = [super init]; [self setVoices:newVoices]; return self; } diff --git a/Finch/FISound.m b/Finch/FISound.m index 3d3150d..4ce9c8a 100644 --- a/Finch/FISound.m +++ b/Finch/FISound.m @@ -31,7 +31,7 @@ - (id) initWithData: (const ALvoid*) data size: (ALsizei) size format: (ALenum) format sampleRate: (ALsizei) frequency duration: (float) seconds { - [super init]; + self = [super init]; ALCcontext *const currentContext = alcGetCurrentContext(); if (currentContext == NULL) diff --git a/Finch/FISoundEngine.m b/Finch/FISoundEngine.m index 3d47a1f..4bdd699 100644 --- a/Finch/FISoundEngine.m +++ b/Finch/FISoundEngine.m @@ -13,7 +13,7 @@ @implementation FISoundEngine - (id) init { - [super init]; + self = [super init]; [self setLogger:FILoggerNull]; return self; }