Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Dec 13, 2024

Fix the following MSVC compiler warning:

include\cpython\pytime.h(192): warning C4115: 'timeval': named type definition in parentheses 

Fix the following MSVC compiler warning: include\cpython\pytime.h(192): warning C4115: 'timeval': named type definition in parentheses
@vstinner
Copy link
MemberAuthor

Note: the existing struct timeval code was added for clang by commit 737d367:

+#ifdef __clang__+struct timeval;+#endif
commit 737d367b1f4bad76914173a64d6bbe19a984cd5f Author: Steve Dower <steve.dower@python.org> Date: Fri Jan 27 14:45:08 2023 +0000 gh-77532: Minor tweaks to allow compiling with PlatformToolset=ClangCL on Windows (GH-101352) To use this, ensure that clang support was selected in Visual Studio Installer, then set the PlatformToolset environment variable to "ClangCL" and build as normal from the command line. It remains unsupported, but at least is possible now for experimentation. 

@vstinnervstinner enabled auto-merge (squash) December 13, 2024 12:07
@vstinnervstinner merged commit c77bfd7 into python:3.12Dec 13, 2024
24 checks passed
@vstinnervstinner deleted the pytime12 branch December 13, 2024 12:13
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@vstinner