robbiehanson / CocoaHTTPServer

A small, lightweight, embeddable HTTP server for Mac OS X or iOS applications
Other
5.6k stars 1.31k forks source link

Warnings #119

Open JetForMe opened 9 years ago

JetForMe commented 9 years ago

Under Xcode 6.1, I get numerous warnings, mostly about the use of dispatch_get_current_queue() being deprecated (which IMHO is a mistake to deprecate). I also get a few more with v2.3:

CocoaHTTPServer/v2.3/Core/Mime/MultipartMessageHeaderField.m:41:15: Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int'

CocoaHTTPServer/v2.3/Core/HTTPServer.m:754:44: Undeclared selector 'donothingatall:'

CocoaHTTPServer/v2.3/Core/HTTPConnection.m:923:23: Code will never be executed

CocoaHTTPServer/v2.3/Core/Mime/MultipartMessageHeader.m:42:15: Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int'

JetForMe commented 9 years ago

Yeah, there are actually a lot more warnings.

brendand commented 9 years ago

Apparently the dispatch_get_current() warnings were fixed with issue #36 but it seems not. That issue was closed a long time ago. Perhaps it wasn't integrated into the latest codebase? I'm using CocoaHTTPServer from cocoa pods.

JetForMe commented 9 years ago

I just downloaded the latest from here.