comparison src/if_python3.c @ 33330:3af53f2895dc v9.0.1930

patch 9.0.1930: compiler warnings with clang-17 Commit: https://github.com/vim/vim/commit/4927bc7d278caa022358832d96604a72a2a58a45 Author: Dominique Pell? <dominique.pelle@tomtom.com> Date: Sun Sep 24 16:12:07 2023 +0200 patch 9.0.1930: compiler warnings with clang-17 Problem: compiler warnings with clang-17 Solution: Fix function prototypes and function pointer fix: clang compilation warnings with -Wstrict-prototypes Change fixes this kind of compilation warnings with clang: ``` proto/if_python3.pro:13:20: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] 13 | int python3_version(); | ^ | void ``` closes: #13166 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Dominique Pell? <dominique.pelle@tomtom.com>
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Sep 2023 16:30:03 +0200
parents a9f0f0eae10e
children 9b35b4c6df4c
comparison
equal deleted inserted replaced
33329:f5864ff35688 33330:3af53f2895dc
2068 { 2068 {
2069 return set_ref_in_py(copyID); 2069 return set_ref_in_py(copyID);
2070 } 2070 }
2071 2071
2072 int 2072 int
2073 python3_version() 2073 python3_version(void)
2074 { 2074 {
2075 #ifdef USE_LIMITED_API 2075 #ifdef USE_LIMITED_API
2076 return Py_LIMITED_API; 2076 return Py_LIMITED_API;
2077 #else 2077 #else
2078 return PY_VERSION_HEX; 2078 return PY_VERSION_HEX;