]> git.sesse.net Git - ffmpeg/commit
lavu: use address-of operator checking clock_gettime
authorMarvin Scholz <epirat07@gmail.com>
Tue, 8 Dec 2020 22:18:25 +0000 (23:18 +0100)
committerJames Almer <jamrial@gmail.com>
Mon, 28 Dec 2020 04:12:26 +0000 (01:12 -0300)
commitd67c6c7f6f57f0ccdc26fcf1f046ca3fa2e93e59
tree77628ee0da928e4dc217856a67b6a93b1128bb95
parent6080c5e24f2ab29de4d57a40e10ff34aca4d56cf
lavu: use address-of operator checking clock_gettime

When targeting a recent enough macOS/iOS version that has clock_gettime
it won't be a weak symbol, in which case clang warns for this check
as it's always true:

  warning: address of function 'clock_gettime' will always
  evaluate to 'true'

This warning is silenced by using the address-of operator to make
the intent explicit.
libavutil/time.c