]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1788: C4090 warnings in strings.c v9.0.1788
authorK.Takata <kentkt@csc.jp>
Sat, 26 Aug 2023 16:05:08 +0000 (18:05 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 26 Aug 2023 16:05:08 +0000 (18:05 +0200)
commit4c215ecdafbc9a32bca885abc3272be741047291
tree31c4eb6245324932da6625c6cedea22a6b9a7f04
parent535b9e12d02f5fef969fb680d579c586bd5f40db
patch 9.0.1788: C4090 warnings in strings.c

Problem:  C4090 warnings in strings.c
Solution: Add type casts

closes: #12917

MSVC shows the following warnings:
```
strings.c(2436): warning C4090: 'function': different 'const' qualifiers
strings.c(2774): warning C4090: 'function': different 'const' qualifiers
strings.c(3865): warning C4090: 'function': different 'const' qualifiers
```

So add type casts to suppress them.

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ken .Takata <kentkt@csc.jp>
src/strings.c
src/version.c