Message355932
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. |
|
Date |
User |
Action |
Args |
2019-11-04 09:36:12 | Mithil | set | recipients:
+ Mithil, paul.moore, tim.golden, zach.ware, steve.dower |
2019-11-04 09:36:12 | Mithil | set | messageid: <1572860172.48.0.713229733746.issue38682@roundup.psfhosted.org> |
2019-11-04 09:36:12 | Mithil | link | issue38682 messages |
2019-11-04 09:36:12 | Mithil | create | |
|