浏览代码

Fixed Xcode 6.3 warnings

Pierre-Olivier Latour 10 年之前
父节点
当前提交
0f0a9840e4
共有 3 个文件被更改,包括 5 次插入0 次删除
  1. 2 0
      GCDWebDAVServer/GCDWebDAVServer.m
  2. 1 0
      GCDWebServer.xcodeproj/project.pbxproj
  3. 2 0
      GCDWebUploader/GCDWebUploader.m

+ 2 - 0
GCDWebDAVServer/GCDWebDAVServer.m

@@ -602,6 +602,8 @@ static inline xmlNodePtr _XMLChildWithName(xmlNodePtr child, const xmlChar* name
 
 @synthesize uploadDirectory=_uploadDirectory, allowedFileExtensions=_allowedExtensions, allowHiddenItems=_allowHidden;
 
+@dynamic delegate;
+
 - (instancetype)initWithUploadDirectory:(NSString*)path {
   if ((self = [super init])) {
     _uploadDirectory = [[path stringByStandardizingPath] copy];

+ 1 - 0
GCDWebServer.xcodeproj/project.pbxproj

@@ -535,6 +535,7 @@
 					"-Wno-documentation",
 					"-Wno-documentation-unknown-command",
 					"-Wno-objc-missing-property-synthesis",
+					"-Wno-cstring-format-directive",
 				);
 			};
 			name = Debug;

+ 2 - 0
GCDWebUploader/GCDWebUploader.m

@@ -292,6 +292,8 @@
 @synthesize uploadDirectory=_uploadDirectory, allowedFileExtensions=_allowedExtensions, allowHiddenItems=_allowHidden,
             title=_title, header=_header, prologue=_prologue, epilogue=_epilogue, footer=_footer;
 
+@dynamic delegate;
+
 - (instancetype)initWithUploadDirectory:(NSString*)path {
   if ((self = [super init])) {
     NSBundle* siteBundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"GCDWebUploader" ofType:@"bundle"]];