0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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>
This commit is contained in:
Dominique Pellé
2023-09-24 16:12:07 +02:00
committed by Christian Brabandt
parent 99c3849a92
commit 4927bc7d27
5 changed files with 8 additions and 6 deletions

View File

@@ -1000,7 +1000,7 @@ has_profiling(
}
static void
prof_clear_cache()
prof_clear_cache(void)
{
if (!prof_cache_initialized)
{