[MacPorts] #67683: ld64-97: error: 'TARGET_OS_WATCH' is not defined, evaluates to 0

MacPorts noreply at macports.org
Sun Jun 25 07:50:44 UTC 2023


#67683: ld64-97: error: 'TARGET_OS_WATCH' is not defined, evaluates to 0
-------------------------+-------------------------
  Reporter:  ryandesign  |      Owner:  jeremyhu
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:  snowleopard
      Port:  ld64        |
-------------------------+-------------------------

Comment (by jmroot):

 That warning has been promoted to an error in newer clang versions. The
 code is actually fine in this case, but the warning can be silenced by
 changing `#if FOO` to `#if defined(FOO) && FOO`.

-- 
Ticket URL: <https://trac.macports.org/ticket/67683#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list