Skip to content

Commit 06965b8

Browse files
committed
patch 8.0.1724: declarations cannot be halfway a block
Problem: Declarations cannot be halfway a block. Solution: Move one declaration to check if this works for all compilers.
1 parent f3a4117 commit 06965b8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,6 @@ main_loop(
10561056
int cmdwin, /* TRUE when working in the command-line window */
10571057
int noexmode) /* TRUE when return on entering Ex mode */
10581058
{
1059-
oparg_T oa; /* operator arguments */
10601059
volatile int previous_got_int = FALSE; /* "got_int" was TRUE */
10611060
#ifdef FEAT_CONCEAL
10621061
/* these are static to avoid a compiler warning */
@@ -1096,6 +1095,7 @@ main_loop(
10961095
}
10971096
#endif
10981097

1098+
oparg_T oa; /* operator arguments */
10991099
clear_oparg(&oa);
11001100
while (!cmdwin
11011101
#ifdef FEAT_CMDWIN

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,8 @@ static char *(features[]) =
762762

763763
static int included_patches[] =
764764
{ /* Add new patch number below this line */
765+
/**/
766+
1724,
765767
/**/
766768
1723,
767769
/**/

0 commit comments

Comments
 (0)