This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients gvanrossum, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2021-04-07.18:33:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617820410.09.0.691386987943.issue43767@roundup.psfhosted.org>
In-reply-to
Content
When building from scratch on Windows I get this warning:

c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winbase.h(103): warning C4005: 'Yield': macro redefinition [C:\Users\gvanrossum\cpython\PCbuild\pythoncore.vcxproj]

I know there is at least one place where we try to prevent this warning, e.g. in Include/internal/pycore_ast.h there's this line:

#undef Yield   /* undefine macro conflicting with <winbase.h> */

But apparently this isn't enough, or the error comes from a different file, or some rearrangement of header files made this #undef ineffective.

Victor, is it possible that your https://github.com/python/cpython/pull/24933 reintroduced this warning?

Steve, what can I do to diagnose this better? (The warning doesn't tell me where winbase.h was included.)
History
Date User Action Args
2021-04-07 18:33:30gvanrossumsetrecipients: + gvanrossum, paul.moore, vstinner, tim.golden, zach.ware, steve.dower
2021-04-07 18:33:30gvanrossumsetmessageid: <1617820410.09.0.691386987943.issue43767@roundup.psfhosted.org>
2021-04-07 18:33:30gvanrossumlinkissue43767 messages
2021-04-07 18:33:29gvanrossumcreate