mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
Remove extraneous parens to silence -Wparentheses-equality
In file included from ../src/nvim/eval/encode.c:974: ../src/nvim/eval/typval_encode.c.h:390:40: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] do { if ((tv->vval.v_special == kSpecialVarTrue)) { msgpack_pack_true(packer); } else { msgpack_pack_false(packer); } } while (0); ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
This commit is contained in:
@@ -933,7 +933,7 @@ char *encode_tv2json(typval_T *tv, size_t *len)
|
|||||||
|
|
||||||
#define TYPVAL_ENCODE_CONV_BOOL(tv, num) \
|
#define TYPVAL_ENCODE_CONV_BOOL(tv, num) \
|
||||||
do { \
|
do { \
|
||||||
if ((num)) { \
|
if (num) { \
|
||||||
msgpack_pack_true(packer); \
|
msgpack_pack_true(packer); \
|
||||||
} else { \
|
} else { \
|
||||||
msgpack_pack_false(packer); \
|
msgpack_pack_false(packer); \
|
||||||
|
Reference in New Issue
Block a user