From 4a7e118332b2d82ac9c30a9695291a57b9afc5ca Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Fri, 12 Jun 2020 22:34:50 +0200 Subject: [PATCH 1/2] Silence -Watimport-in-framework-header --- Source/CocoaAsyncSocket.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/CocoaAsyncSocket.h b/Source/CocoaAsyncSocket.h index 7b49498c..2eb919fb 100644 --- a/Source/CocoaAsyncSocket.h +++ b/Source/CocoaAsyncSocket.h @@ -6,7 +6,12 @@ // CocoaAsyncSocket project is in the public domain. // +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif @import Foundation; +#endif //! Project version number for CocoaAsyncSocket. FOUNDATION_EXPORT double cocoaAsyncSocketVersionNumber; From dbcb9de0a251be02eeff374c6a5996dc41ed501f Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Sat, 13 Jun 2020 00:21:59 +0200 Subject: [PATCH 2/2] Update Source/CocoaAsyncSocket.h Co-authored-by: Chris Ballinger --- Source/CocoaAsyncSocket.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/CocoaAsyncSocket.h b/Source/CocoaAsyncSocket.h index 2eb919fb..c4e5ee8f 100644 --- a/Source/CocoaAsyncSocket.h +++ b/Source/CocoaAsyncSocket.h @@ -6,12 +6,7 @@ // CocoaAsyncSocket project is in the public domain. // -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import Foundation; -#endif +#import //! Project version number for CocoaAsyncSocket. FOUNDATION_EXPORT double cocoaAsyncSocketVersionNumber;