From 42edc23fc750609cff1044af8aaa612c6aef5863 Mon Sep 17 00:00:00 2001 From: Tony Arnold Date: Fri, 11 Apr 2014 00:32:21 +1000 Subject: [PATCH] Disable deprecation warning inside the library --- .../Categories/NSManagedObject/NSManagedObject+MagicalRecord.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalRecord.m b/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalRecord.m index 5020ec2d5..e8688a164 100644 --- a/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalRecord.m +++ b/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalRecord.m @@ -186,7 +186,10 @@ + (id) MR_createEntityInContext:(NSManagedObjectContext *)context + (id) MR_createEntity { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" NSManagedObject *newEntity = [self MR_createEntityInContext:[NSManagedObjectContext MR_contextForCurrentThread]]; +#pragma clang diagnostic pop return newEntity; }