75e3abbf5e9a — Chris Cannam 7 days ago
Fix compiler warnings
1 files changed, 1 insertions(+), 3 deletions(-)

M src/AudioWriteStreamFactory.cpp
M src/AudioWriteStreamFactory.cpp +1 -3
@@ 56,8 56,6 @@ AudioWriteStreamFactory::createWriteStre
                                            size_t channelCount,
                                            size_t sampleRate)
 {
-    AudioWriteStream *s = 0;
-
     string extension = AudioReadStreamFactory::extensionOf(audioFileName);
     
     AudioWriteStream::Target target(audioFileName, channelCount, sampleRate);

          
@@ 68,7 66,7 @@ AudioWriteStreamFactory::createWriteStre
         AudioWriteStream *stream = f->createFor(extension, target);
         if (!stream) throw UnknownFileType(audioFileName);
         return stream;
-    } catch (UnknownTagException) {
+    } catch (const UnknownTagException &) {
         throw UnknownFileType(audioFileName);
     }
 }