#33412: clang-3.1 build fails due to unused function in Leopard --------------------------------+------------------------------------------- Reporter: stephen@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: --------------------------------+------------------------------------------- {{{clang-3.1 @3.1-r151504}}} {{{mi_zone_locked}}} is not used on Mac OS X < 10.6. With {{{-Werror}}}, this aborts the build on Leopard. The definition at l.301 of {{{projects/compiler- rt/lib/asan/asan_malloc_mac.cc}}} needs to be wrapped in {{{ #if defined(MAC_OS_X_VERSION_10_6) && \ MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 // definition #endif }}} With this change the build succeeds. -- Ticket URL: <https://trac.macports.org/ticket/33412> MacPorts <http://www.macports.org/> Ports system for Mac OS