Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
26479:63f4875b1966 | 26480:cf986610be6a |
---|---|
6574 { | 6574 { |
6575 int i; | 6575 int i; |
6576 char_u *p; | 6576 char_u *p; |
6577 int len; | 6577 int len; |
6578 int totlen; | 6578 int totlen; |
6579 size_t x = 1; // collect return value of fwrite() | 6579 size_t x UNUSED = 1; // collect return value of fwrite() |
6580 | 6580 |
6581 if (fd != NULL) | 6581 if (fd != NULL) |
6582 put_bytes(fd, (long_u)gap->ga_len, 2); // <prefcondcnt> | 6582 put_bytes(fd, (long_u)gap->ga_len, 2); // <prefcondcnt> |
6583 | 6583 |
6584 totlen = 2 + gap->ga_len; // length of <prefcondcnt> and <condlen> bytes | 6584 totlen = 2 + gap->ga_len; // length of <prefcondcnt> and <condlen> bytes |