Skip to content

Fix compiler warnings on macOS#5695

Closed
MarcelRaad wants to merge 2 commits into
curl:masterfrom
MarcelRaad:macos_warnings
Closed

Fix compiler warnings on macOS#5695
MarcelRaad wants to merge 2 commits into
curl:masterfrom
MarcelRaad:macos_warnings

Conversation

@MarcelRaad

Copy link
Copy Markdown
Member
  • The MD4 and MD5 functions have been deprecated in macOS 10.15
  • timeval::tv_usec is a 32-bit int and timespec::tv_nsec is a 64-bit long on macOS

They are marked as deprecated for -mmacosx-version-min >= 10.15,
which might result in warnings-as-errors.

Closes
timeval::tv_usec might be a 32-bit integer and timespec::tv_nsec might
be a 64-bit integer. This is the case when building for recent macOS
versions, for example. Just treat tv_usec as an int, which should
hopefully always be sufficient on systems with
`HAVE_CLOCK_GETTIME_MONOTONIC`.

Closes
MarcelRaad added a commit to MarcelRaad/curl that referenced this pull request Jul 19, 2020
timeval::tv_usec might be a 32-bit integer and timespec::tv_nsec might
be a 64-bit integer. This is the case when building for recent macOS
versions, for example. Just treat tv_usec as an int, which should
hopefully always be sufficient on systems with
`HAVE_CLOCK_GETTIME_MONOTONIC`.

Closes curl#5695
@MarcelRaad
MarcelRaad deleted the macos_warnings branch July 19, 2020 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants