Skip to content

Commit

Permalink
Fix some warnings and suppress some unavoidable ones
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Nov 26, 2023
1 parent 470816d commit b68e304
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Source/GSSocketStream.m
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,11 @@ - (void) _sendEvent: (NSStreamEvent)event
}
}

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align"

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
- (BOOL) _setSocketAddress: (NSString*)address
port: (NSInteger)port
family: (NSInteger)family
Expand All @@ -1670,7 +1675,7 @@ - (BOOL) _setSocketAddress: (NSString*)address
}
else
{
[self _setAddress: (struct sockaddr*)&peer];
[self _setAddress: (struct sockaddr_storage*)&peer];
return YES;
}
}
Expand Down Expand Up @@ -2934,6 +2939,11 @@ - (void) acceptWithInputStream: (NSInputStream **)inputStream
*/
}

#pragma GCC diagnostic pop // cast align

#pragma GCC diagnostic pop // incompatible pointer types...


- (void) _dispatch
{
#if defined(_WIN32)
Expand Down

0 comments on commit b68e304

Please sign in to comment.