Skip to content

Commit

Permalink
Annotate variables used in NSCAssert as being possibly unused
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Nov 19, 2024
1 parent 8165cbb commit f9efbc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/objective_c/src/input_stream_adapter.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ - (void)close {
[_dataCondition lock];
_status = NSStreamStatusClosed;
if (!_done && _error == nil) {
const bool success = Dart_PostInteger_DL(_sendPort, -1);
__unused const bool success = Dart_PostInteger_DL(_sendPort, -1);
NSCAssert(success, @"DartInputStreamAdapter: Dart_PostCObject_DL failed.");
}
[_dataCondition unlock];
Expand Down Expand Up @@ -122,7 +122,7 @@ - (NSInteger)read:(uint8_t *)buffer maxLength:(NSUInteger)len {
[_dataCondition lock];

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

[_dataCondition wait];
Expand Down

0 comments on commit f9efbc8

Please sign in to comment.