Ronald Oussoren <ronaldousso...@mac.com> added the comment:
This is incompatibility between upstream clang and Apple's headers. The same warning is not present when using Xcode's compiler. As a workaround this warning can be disabled when including pthread.h, something like: ``` #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wexpansion-to-defined" #endif #include <pthread.h> #ifdef __clang__ #pragma clang diagnostic pop #endif ``` I won't create a PR for this because I don't have homebrew on my systems. Alternatively build with "-Wno-expansion-to-defined" in CFLAGS. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39961> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com