* fixed error processing for pipe2 call in Unix/../pal_process.c
Due to -Werror warning (function result not checked) is converted to an
error.
Fix #32038
* fixed warnings in Unix/../pal_networking.c
Due to -Werror all warnings (wrong signess, wrong types) converted to
errors, so why this changes needed.
Fix #32038
(uint32_t)hostLength,
(char*)service,
(uint32_t)serviceLength,
- nativeFlags);
+ (int)nativeFlags);
}
else
{
(uint32_t)hostLength,
(char*)service,
(uint32_t)serviceLength,
- nativeFlags);
+ (int)nativeFlags);
}
return ConvertGetAddrInfoAndGetNameInfoErrorsToPal(result);
int err = bind(
fd,
(struct sockaddr*)socketAddress,
-#if BIND_ADDRLEN_UNSIGNED
(socklen_t)socketAddressLen);
-#else
- socketAddressLen);
-#endif
return err == 0 ? Error_SUCCESS : SystemNative_ConvertErrorPlatformToPal(errno);
}
// Process is still the clone of this one. This is a best-effort attempt, so ignore any errors.
// If the child fails to exec we use the pipe to pass the errno to the parent process.
#if HAVE_PIPE2
- pipe2(waitForChildToExecPipe, O_CLOEXEC);
+ (void)! pipe2(waitForChildToExecPipe, O_CLOEXEC);
#else
- SystemNative_Pipe(waitForChildToExecPipe, PAL_O_CLOEXEC);
+ (void)! SystemNative_Pipe(waitForChildToExecPipe, PAL_O_CLOEXEC);
#endif
// The fork child must not be signalled until it calls exec(): our signal handlers do not