diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-10-24 02:49:43 -0700 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-10-24 02:49:43 -0700 |
commit | 867572cc54af7142b577ff02e22f05541e4008ad (patch) | |
tree | 10ced230df2df1eb8b99f2c12d0be5a4707ae53a | |
parent | 503dfe9994211523b0b00211a4e3a7d3b96e3201 (diff) | |
download | psutil-867572cc54af7142b577ff02e22f05541e4008ad.tar.gz |
fix compiler warnings
-rw-r--r-- | make.bat | 4 | ||||
-rw-r--r-- | psutil/_psutil_windows.c | 5 |
2 files changed, 5 insertions, 4 deletions
@@ -20,8 +20,8 @@ rem set PYTHON=C:\Python34\python.exe & set TSCRIPT=foo.py & make.bat test rem ========================================================================== if "%PYTHON%" == "" ( - if exist "C:\Python37\python.exe" ( - set PYTHON=C:\Python37\python.exe + if exist "C:\Python38-64\python.exe" ( + set PYTHON=C:\Python38-64\python.exe ) else ( set PYTHON=C:\Python27\python.exe ) diff --git a/psutil/_psutil_windows.c b/psutil/_psutil_windows.c index f071648f..66a8786d 100644 --- a/psutil/_psutil_windows.c +++ b/psutil/_psutil_windows.c @@ -3510,9 +3510,10 @@ PsutilMethods[] = { {"cpu_freq", psutil_cpu_freq, METH_VARARGS, "Return CPU frequency."}, #if (_WIN32_WINNT >= 0x0600) // Windows Vista - {"init_loadavg_counter", psutil_init_loadavg_counter, METH_VARARGS, + {"init_loadavg_counter", (PyCFunction)psutil_init_loadavg_counter, + METH_VARARGS, "Initializes the emulated load average calculator."}, - {"getloadavg", psutil_get_loadavg, METH_VARARGS, + {"getloadavg", (PyCFunction)psutil_get_loadavg, METH_VARARGS, "Returns the emulated POSIX-like load average."}, #endif {"sensors_battery", psutil_sensors_battery, METH_VARARGS, |