aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/strings.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2022-05-18 02:32:15 +0200
committerGitHub <noreply@github.com>2022-05-18 02:32:15 +0200
commitb70856009dadacddd8eb95c7cd462c86b1c13209 (patch)
tree696f590fdae70d4503ce51014e21faad97c8fc59 /src/nvim/strings.c
parent7ded303d684605ea44846c5f8a4031326529fb6d (diff)
parent10868dbf893f69070a56ea2193b9962caacef324 (diff)
downloadrneovim-b70856009dadacddd8eb95c7cd462c86b1c13209.tar.gz
rneovim-b70856009dadacddd8eb95c7cd462c86b1c13209.tar.bz2
rneovim-b70856009dadacddd8eb95c7cd462c86b1c13209.zip
Merge #18605 PVS fixes
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r--src/nvim/strings.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c
index c0c942ffd2..cde2059a9d 100644
--- a/src/nvim/strings.c
+++ b/src/nvim/strings.c
@@ -634,12 +634,12 @@ static const void *tv_ptr(const typval_T *const tvs, int *const idxp)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT
{
#define OFF(attr) offsetof(union typval_vval_union, attr)
- STATIC_ASSERT(OFF(v_string) == OFF(v_list)
+ STATIC_ASSERT(OFF(v_string) == OFF(v_list) // -V568
&& OFF(v_string) == OFF(v_dict)
&& OFF(v_string) == OFF(v_partial)
- && sizeof(tvs[0].vval.v_string) == sizeof(tvs[0].vval.v_list) // -V568
- && sizeof(tvs[0].vval.v_string) == sizeof(tvs[0].vval.v_dict) // -V568
- && sizeof(tvs[0].vval.v_string) == sizeof(tvs[0].vval.v_partial), // -V568
+ && sizeof(tvs[0].vval.v_string) == sizeof(tvs[0].vval.v_list)
+ && sizeof(tvs[0].vval.v_string) == sizeof(tvs[0].vval.v_dict)
+ && sizeof(tvs[0].vval.v_string) == sizeof(tvs[0].vval.v_partial),
"Strings, dictionaries, lists and partials are expected to be pointers, "
"so that all three of them can be accessed via v_string");
#undef OFF