Unused variable in change.c for Tiny and Small at patchlevel 8.2.4403

7 views
Skip to first unread message

Tony Mechelynck

unread,
Feb 16, 2022, 3:55:04 PM2/16/22
to Bram Moolenaar, vim_dev
I don't yet see the patch in the list but it has appeared on the
Mercurial server.

gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -fno-strength-reduce -Wall
-Wno-deprecated-declarations -D_REENTRANT -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=1 -o objects/change.o change.c
change.c: In function ‘changed_common’:
change.c:555:15: warning: unused variable ‘last’ [-Wunused-variable]
linenr_T last = lnume + xtra - 1; // last line after the change
^~~~


Best regards,
Tony.

Bram Moolenaar

unread,
Feb 16, 2022, 4:52:30 PM2/16/22
to vim...@googlegroups.com, Tony Mechelynck

Tony wrote:

> I don't yet see the patch in the list but it has appeared on the
> Mercurial server.
>
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -fno-strength-reduce -Wall
> -Wno-deprecated-declarations -D_REENTRANT -U_FORTIFY_SOURCE
> -D_FORTIFY_SOURCE=3D1 -o objects/change.o change.c
> change.c: In function =E2=80=98changed_common=E2=80=99:
> change.c:555:15: warning: unused variable =E2=80=98last=E2=80=99 [-Wunused-=
> variable]
> linenr_T last =3D lnume + xtra - 1; // last line after the change
> ^~~~

I'll add the missing #ifdef.

--
"I can't complain, but sometimes I still do." (Joe Walsh)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages