diff options
author | ichizok <gclient.gaap@gmail.com> | 2021-12-09 21:08:01 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-09 21:08:01 +0000 |
commit | dee78e1ce857985c06ff18e20daeadfe1622b8ae (patch) | |
tree | 88154493cd203d40f170682397645191fb248fcc /src/os_unix.c | |
parent | 4c8c634365bc6d4d462635aed5e0f7ad2262d590 (diff) | |
download | vim-git-dee78e1ce857985c06ff18e20daeadfe1622b8ae.tar.gz |
patch 8.2.3770: new compiler warnings from clang-12 and clang-13v8.2.3770
Problem: New compiler warnings from clang-12 and clang-13.
Solution: Adjust CI and suppress some warnings. (Ozaki Kiichi, closes #9314)
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 32850f3bf..1c00f2279 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3376,7 +3376,15 @@ exit_scroll(void) } #ifdef USE_GCOV_FLUSH -extern void __gcov_flush(); +# if (defined(__GNUC__) \ + && ((__GNUC__ == 11 && __GNUC_MINOR__ >= 1) || (__GNUC__ >= 12))) \ + || (defined(__clang__) && (__clang_major__ >= 12)) +extern void __gcov_dump(void); +extern void __gcov_reset(void); +# define __gcov_flush() do { __gcov_dump(); __gcov_reset(); } while (0) +# else +extern void __gcov_flush(void); +# endif #endif void |