patch 9.0.1930: compiler warnings with clang-17 Commit: https://github.com/vim/vim/commit/4927bc7d278caa022358832d96604a72a2a58a45 Author: Dominique Pellé <dominique.pe...@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 <c...@256bit.org> Co-authored-by: Dominique Pellé <dominique.pe...@tomtom.com> diff --git a/src/debugger.c b/src/debugger.c index 66647ab46..5508ea33f 100644 --- a/src/debugger.c +++ b/src/debugger.c @@ -1000,7 +1000,7 @@ has_profiling( } static void -prof_clear_cache() +prof_clear_cache(void) { if (!prof_cache_initialized) { diff --git a/src/if_python3.c b/src/if_python3.c index 9d53cafc7..a04cca31a 100644 --- a/src/if_python3.c +++ b/src/if_python3.c @@ -2070,7 +2070,7 @@ set_ref_in_python3(int copyID) } int -python3_version() +python3_version(void) { #ifdef USE_LIMITED_API return Py_LIMITED_API; diff --git a/src/os_unix.c b/src/os_unix.c index 31f66b137..45c6b440a 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -1858,7 +1858,7 @@ ex_xrestore(exarg_T *eap) static int test_x11_window(Display *dpy) { - int (*old_handler)(); + int (*old_handler)(Display*, XErrorEvent*); XTextProperty text_prop; old_handler = XSetErrorHandler(x_error_check); @@ -7781,9 +7781,9 @@ setup_term_clip(void) 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; diff --git a/src/proto/if_python3.pro b/src/proto/if_python3.pro index d2bcd8c5a..0e139b990 100644 --- a/src/proto/if_python3.pro +++ b/src/proto/if_python3.pro @@ -10,5 +10,5 @@ void python3_window_free(win_T *win); 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 : */ diff --git a/src/version.c b/src/version.c index c258d7b4e..f30b08e4a 100644 --- a/src/version.c +++ b/src/version.c @@ -699,6 +699,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1930, /**/ 1929, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1qkQ7X-009Yt4-6E%40256bit.org.