Skip to content

Commit e53094d

Browse files
GlitchedCode922am11jkotas
authored
Fix compiler warning for unreachable code in PAL network interfaces (#117417)
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com> Co-authored-by: Jan Kotas <jkotas@microsoft.com>
1 parent 09801ba commit e53094d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/native/libs/System.Native/pal_networkchange.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ Error SystemNative_ReadEvents(intptr_t sock, NetworkChangeEvent onNetworkChange)
179179
{
180180
(void)sock;
181181
(void)onNetworkChange;
182-
// unreachable
183-
abort();
184-
return Error_EINVAL;
182+
return Error_ENOTSUP;
185183
}
186184
#endif

0 commit comments

Comments
 (0)