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>
}
static void
-prof_clear_cache()
+prof_clear_cache(void)
{
if (!prof_cache_initialized)
{
}
int
-python3_version()
+python3_version(void)
{
#ifdef USE_LIMITED_API
return Py_LIMITED_API;
static int
test_x11_window(Display *dpy)
{
- int (*old_handler)();
+ int (*old_handler)(Display*, XErrorEvent*);
XTextProperty text_prop;
old_handler = XSetErrorHandler(x_error_check);
open_app_context();
if (app_context != NULL && xterm_Shell == (Widget)0)
{
- int (*oldhandler)();
+ int (*oldhandler)(Display*, XErrorEvent*);
# if defined(USING_SETJMP)
- int (*oldIOhandler)();
+ int (*oldIOhandler)(Display*);
# endif
# ifdef ELAPSED_FUNC
elapsed_T start_tv;
void python3_tabpage_free(tabpage_T *tab);
void do_py3eval(char_u *str, typval_T *rettv);
int set_ref_in_python3(int copyID);
-int python3_version();
+int python3_version(void);
/* vim: set ft=c : */
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1930,
/**/
1929,
/**/