Revision: 13790
http://sourceforge.net/p/skim-app/code/13790
Author: hofman
Date: 2023-11-21 17:59:17 +0000 (Tue, 21 Nov 2023)
Log Message:
-----------
Silence compiler warnings in test app
Modified Paths:
--------------
trunk/SkimNotes/SKNDocument.m
trunk/SkimNotes/SKNSkimReader.h
Modified: trunk/SkimNotes/SKNDocument.m
===================================================================
--- trunk/SkimNotes/SKNDocument.m 2023-11-20 23:31:17 UTC (rev 13789)
+++ trunk/SkimNotes/SKNDocument.m 2023-11-21 17:59:17 UTC (rev 13790)
@@ -103,7 +103,6 @@
- (BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)docType
error:(NSError **)outError {
NSArray *array = nil;
- NSData *data = nil;
NSError *error = nil;
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
NSFileManager *fm = [NSFileManager defaultManager];
@@ -120,6 +119,8 @@
#elif defined(AgentSample)
+ NSData *data = nil;
+
if ([ws type:docType conformsToType:SKNPDFDocumentType] ||
[ws type:docType conformsToType:SKNPDFBundleDocumentType] ||
[ws type:docType conformsToType:SKNSkimNotesDocumentType]) {
Modified: trunk/SkimNotes/SKNSkimReader.h
===================================================================
--- trunk/SkimNotes/SKNSkimReader.h 2023-11-20 23:31:17 UTC (rev 13789)
+++ trunk/SkimNotes/SKNSkimReader.h 2023-11-21 17:59:17 UTC (rev 13790)
@@ -41,7 +41,10 @@
@interface SKNSkimReader : NSObject {
NSString *agentIdentifier;
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
NSConnection *connection;
+#pragma clang diagnostic pop
id agent;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit