mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 23:06:03 +00:00
Fixed Xcode warnings
This commit is contained in:
@@ -143,7 +143,7 @@ static bool AddFileDescriptorCloseActions(posix_spawn_file_actions_t *fa)
|
||||
}
|
||||
closedir(dir);
|
||||
} else {
|
||||
for (int fd = sysconf(_SC_OPEN_MAX) - 1; fd > STDERR_FILENO; --fd) {
|
||||
for (int fd = (int)(sysconf(_SC_OPEN_MAX) - 1); fd > STDERR_FILENO; --fd) {
|
||||
int flags = fcntl(fd, F_GETFD);
|
||||
if (flags < 0 || (flags & FD_CLOEXEC)) {
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user