diff --git a/AsyncDisplayKit/Private/ASDispatch.h b/AsyncDisplayKit/Private/ASDispatch.h index 78d7f906..17515ff7 100644 --- a/AsyncDisplayKit/Private/ASDispatch.h +++ b/AsyncDisplayKit/Private/ASDispatch.h @@ -14,7 +14,7 @@ * Note: The actual number of threads may be lower than threadCount, if libdispatch * decides the system can't handle it. In reality this rarely happens. */ -static void ASDispatchApply(size_t iterationCount, dispatch_queue_t queue, NSUInteger threadCount, void(^work)(size_t i)) { +__unused static void ASDispatchApply(size_t iterationCount, dispatch_queue_t queue, NSUInteger threadCount, void(^work)(size_t i)) { if (threadCount == 0) { threadCount = [NSProcessInfo processInfo].activeProcessorCount * 2; }