Mercurial > vim
diff src/spellfile.c @ 26480:cf986610be6a v8.2.3770
patch 8.2.3770: new compiler warnings from clang-12 and clang-13
Commit: https://github.com/vim/vim/commit/dee78e1ce857985c06ff18e20daeadfe1622b8ae
Author: ichizok <gclient.gaap@gmail.com>
Date: Thu Dec 9 21:08:01 2021 +0000
patch 8.2.3770: new compiler warnings from clang-12 and clang-13
Problem: New compiler warnings from clang-12 and clang-13.
Solution: Adjust CI and suppress some warnings. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/9314)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 Dec 2021 22:15:03 +0100 |
parents | b18f3b0f317c |
children | 3af0359e8a42 |
line wrap: on
line diff
--- a/src/spellfile.c +++ b/src/spellfile.c @@ -6576,7 +6576,7 @@ write_spell_prefcond(FILE *fd, garray_T char_u *p; int len; int totlen; - size_t x = 1; // collect return value of fwrite() + size_t x UNUSED = 1; // collect return value of fwrite() if (fd != NULL) put_bytes(fd, (long_u)gap->ga_len, 2); // <prefcondcnt>