From db5f14f730c7258cb907aad6059e2887da5ed457 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 21 Oct 2014 18:42:25 +0200 Subject: [PATCH] More warnings fixed. --- MP42/MP42Metadata.m | 7 ++++++- MP42Foundation.xcodeproj/project.pbxproj | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/MP42/MP42Metadata.m b/MP42/MP42Metadata.m index ea3c8cc..c5b6ee4 100644 --- a/MP42/MP42Metadata.m +++ b/MP42/MP42Metadata.m @@ -537,10 +537,15 @@ static const genreType_t genreType_strings[] = { isEdited = YES; } } - else { + else if ([value isKindOfClass:[NSString class]]) { [tagsDict setValue:value forKey:key]; isEdited = YES; } + else { + NSLog(@"Weird object here"); + NSLog(@"%@", value); + noErr = NO; + } } else if ([key isEqualToString:@"Gapless"]) { if ([value isKindOfClass:[NSNumber class]]) { diff --git a/MP42Foundation.xcodeproj/project.pbxproj b/MP42Foundation.xcodeproj/project.pbxproj index 2ca6a19..ba93a91 100644 --- a/MP42Foundation.xcodeproj/project.pbxproj +++ b/MP42Foundation.xcodeproj/project.pbxproj @@ -120,7 +120,7 @@ A9B9C27D1823923200416A4E /* MP42FileImporter.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2321823923100416A4E /* MP42FileImporter.h */; settings = {ATTRIBUTES = (Public, ); }; }; A9B9C27E1823923200416A4E /* MP42FileImporter.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2331823923100416A4E /* MP42FileImporter.m */; }; A9B9C27F1823923200416A4E /* MP42H264Importer.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2341823923100416A4E /* MP42H264Importer.h */; }; - A9B9C2801823923200416A4E /* MP42H264Importer.mm in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2351823923100416A4E /* MP42H264Importer.mm */; }; + A9B9C2801823923200416A4E /* MP42H264Importer.mm in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2351823923100416A4E /* MP42H264Importer.mm */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-checker"; }; }; A9B9C2811823923200416A4E /* MP42HtmlParser.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2361823923100416A4E /* MP42HtmlParser.h */; }; A9B9C2821823923200416A4E /* MP42HtmlParser.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B9C2371823923100416A4E /* MP42HtmlParser.m */; }; A9B9C2831823923200416A4E /* MP42Image.h in Headers */ = {isa = PBXBuildFile; fileRef = A9B9C2381823923100416A4E /* MP42Image.h */; settings = {ATTRIBUTES = (Public, ); }; };