• Marvin Scholz's avatar
    lavu: use address-of operator checking clock_gettime · d67c6c7f
    Marvin Scholz authored
    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.
    d67c6c7f
time.c 2.31 KB