Skip to content

Commit ee2215e

Browse files
authored
Annotate variables used in NSCAssert as being possibly unused (#1736)
1 parent 9b8d79b commit ee2215e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/objective_c/src/input_stream_adapter.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ - (void)close {
7373
[_dataCondition lock];
7474
_status = NSStreamStatusClosed;
7575
if (!_done && _error == nil) {
76-
const bool success = Dart_PostInteger_DL(_sendPort, -1);
76+
__unused const bool success = Dart_PostInteger_DL(_sendPort, -1);
7777
NSCAssert(success, @"DartInputStreamAdapter: Dart_PostCObject_DL failed.");
7878
}
7979
[_dataCondition unlock];
@@ -122,7 +122,7 @@ - (NSInteger)read:(uint8_t *)buffer maxLength:(NSUInteger)len {
122122
[_dataCondition lock];
123123

124124
while (([_data length] == 0) && !_done && _error == nil) {
125-
const bool success = Dart_PostInteger_DL(_sendPort, len);
125+
__unused const bool success = Dart_PostInteger_DL(_sendPort, len);
126126
NSCAssert(success, @"DartInputStreamAdapter: Dart_PostCObject_DL failed.");
127127

128128
[_dataCondition wait];

0 commit comments

Comments
 (0)