Compiler warnings (no error) in screen.c in Tiny and Small after applying patches 8.1.1738 to 1746

10 views
Skip to first unread message

Tony Mechelynck

unread,
Jul 25, 2019, 9:05:52 AM7/25/19
to vim_dev
After applying patches 1738 to 1746 (of release 8.1) I get the
following warnings (in Tiny and Small only). An executable is
produced. I suspect patch 8.1.1744.

gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -fno-strength-reduce -Wall
-D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o
objects/screen.o screen.c
screen.c: In function ‘win_line’:
screen.c:3862:6: warning: unused variable ‘has_match_conc’ [-Wunused-variable]
int has_match_conc = 0; // match wants to conceal
^~~~~~~~~~~~~~
screen.c:3318:10: warning: unused variable ‘match_conc’ [-Wunused-variable]
int match_conc = 0; // cchar for match functions
^~~~~~~~~~


Best regards,
Tony.

Bram Moolenaar

unread,
Jul 25, 2019, 2:53:29 PM7/25/19
to vim...@googlegroups.com, Tony Mechelynck
Yeah, it requires an #ifdef.

Although I have been thinking of graduating FEAT_SEARCH_EXTRA.
I don't think it has any system dependencies, it's just extra code size.


--
Bad programs can be written in any language.

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