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 Mithil
Recipients Mithil, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-11-04.09:36:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572860172.48.0.713229733746.issue38682@roundup.psfhosted.org>
In-reply-to
Content
pytime.h compilation gives warnings - 

pytime.h:123:59: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
 PyAPI_FUNC(int) _PyTime_FromTimeval(_PyTime_t *tp, struct timeval *tv);
                                                           ^~~~~~~
pytime.h:130:12: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
     struct timeval *tv,
            ^~~~~~~
pytime.h:135:12: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
     struct timeval *tv,

=====

I think the reason for this is that the struct timeval isn't declared anywhere before the declaration of this function. For me on windows, the structure is defined inside of winsock.h and including it before the other python header files fixes the problem.
History
Date User Action Args
2019-11-04 09:36:12Mithilsetrecipients: + Mithil, paul.moore, tim.golden, zach.ware, steve.dower
2019-11-04 09:36:12Mithilsetmessageid: <1572860172.48.0.713229733746.issue38682@roundup.psfhosted.org>
2019-11-04 09:36:12Mithillinkissue38682 messages
2019-11-04 09:36:12Mithilcreate