Summary: this diff ignores an used variable error as it is deliberate xcode 13.3 doesnt like that see: https://www.internalfb.com/intern/testinfra/diagnostics/5066549669072759.844424981821815.1644949594/ Note: feel free to commandeer for better fix! Reviewed By: d16r Differential Revision: D34259729 fbshipit-source-id: 7c6ba4129a83a6f82981e927744c3a36046d88df
26 lines
668 B
Objective-C
26 lines
668 B
Objective-C
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#define FBPFTrace(...) /*NSLog(__VA_ARGS__)*/
|
|
#define FBPFLog(...) NSLog(__VA_ARGS__)
|
|
|
|
enum {
|
|
FKPortForwardingFrameTypeOpenPipe = 201,
|
|
FKPortForwardingFrameTypeWriteToPipe = 202,
|
|
FKPortForwardingFrameTypeClosePipe = 203,
|
|
};
|
|
|
|
static dispatch_data_t NSDataToGCDData(NSData* data) {
|
|
__block NSData* retainedData = data;
|
|
return dispatch_data_create(data.bytes, data.length, nil, ^{
|
|
retainedData = nil;
|
|
});
|
|
(void)retainedData;
|
|
}
|