mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
refactor: clang-tidy fixes to silence clangd warning (#20683)
* refactor: readability-uppercase-literal-suffix * refactor: readability-named-parameter * refactor: bugprone-suspicious-string-compare * refactor: google-readability-casting * refactor: readability-redundant-control-flow * refactor: bugprone-too-small-loop-variable * refactor: readability-non-const-parameter * refactor: readability-avoid-const-params-in-decls * refactor: google-readability-todo * refactor: readability-inconsistent-declaration-parameter-name * refactor: bugprone-suspicious-missing-comma * refactor: remove noisy or slow warnings
This commit is contained in:
@@ -3256,7 +3256,7 @@ static void showoptions(int all, int opt_flags)
|
||||
}
|
||||
|
||||
/// Return true if option "p" has its default value.
|
||||
static int optval_default(vimoption_T *p, char_u *varp)
|
||||
static int optval_default(vimoption_T *p, const char_u *varp)
|
||||
{
|
||||
if (varp == NULL) {
|
||||
return true; // hidden option is always at default
|
||||
@@ -4889,7 +4889,7 @@ static void option_value2string(vimoption_T *opp, int opt_flags)
|
||||
/// Return true if "varp" points to 'wildchar' or 'wildcharm' and it can be
|
||||
/// printed as a keyname.
|
||||
/// "*wcp" is set to the value of the option if it's 'wildchar' or 'wildcharm'.
|
||||
static int wc_use_keyname(char_u *varp, long *wcp)
|
||||
static int wc_use_keyname(const char_u *varp, long *wcp)
|
||||
{
|
||||
if (((long *)varp == &p_wc) || ((long *)varp == &p_wcm)) {
|
||||
*wcp = *(long *)varp;
|
||||
|
Reference in New Issue
Block a user