1
0
forked from aniani/vim

patch 9.0.1336: functions without arguments are not always declared properly

Problem:    Functions without arguments are not always declared properly.
Solution:   Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031)
This commit is contained in:
Yegappan Lakshmanan
2023-02-21 14:27:41 +00:00
committed by Bram Moolenaar
parent d950984489
commit a23a11b5bf
34 changed files with 75 additions and 72 deletions

View File

@@ -2081,7 +2081,7 @@ set_termname(char_u *term)
#endif
{
// Use the 'keyprotocol' option to adjust the t_TE and t_TI
// termcap entries if there is an entry maching "term".
// termcap entries if there is an entry matching "term".
keyprot_T kpc = match_keyprotocol(term);
if (kpc == KEYPROTOCOL_KITTY)
apply_builtin_tcap(term, builtin_kitty, TRUE);
@@ -2092,7 +2092,7 @@ set_termname(char_u *term)
// There is no good way to detect that the terminal supports RGB
// colors. Since these termcap entries are non-standard anyway and
// only used when the user sets 'termguicolors' we might as well add
// them. But not when one of them was alredy set.
// them. But not when one of them was already set.
if (term_strings_not_set(KS_8F)
&& term_strings_not_set(KS_8B)
&& term_strings_not_set(KS_8U))
@@ -2341,7 +2341,7 @@ set_termname(char_u *term)
* Avoids that valgrind reports possibly lost memory.
*/
void
free_cur_term()
free_cur_term(void)
{
# ifdef HAVE_DEL_CURTERM
if (cur_term)
@@ -2997,7 +2997,7 @@ term_set_winpos(int x, int y)
* Return TRUE if we can request the terminal for a response.
*/
static int
can_get_termresponse()
can_get_termresponse(void)
{
return cur_tmode == TMODE_RAW
&& termcap_active
@@ -3021,7 +3021,7 @@ termrequest_sent(termrequest_T *status)
* Return TRUE if any of the requests are in STATUS_SENT.
*/
static int
termrequest_any_pending()
termrequest_any_pending(void)
{
int i;
time_t now = time(NULL);
@@ -4367,7 +4367,7 @@ term_cursor_color(char_u *color)
# endif
int
blink_state_is_inverted()
blink_state_is_inverted(void)
{
#ifdef FEAT_TERMRESPONSE
return rbm_status.tr_progress == STATUS_GOT