To: vim_dev@googlegroups.com Subject: Patch 8.2.2042 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2042 Problem: Build failure with +profile but without +reltime. Solution: Adjust #ifdef. (Christian Brabandt, closes #7361) Files: src/syntax.c *** ../vim-8.2.2041/src/syntax.c 2020-11-18 16:53:19.982914841 +0100 --- src/syntax.c 2020-11-25 11:46:32.480624943 +0100 *************** *** 6707,6713 **** { int idx; synpat_T *spp; ! # ifdef FEAT_FLOAT proftime_T tm; # endif int len; --- 6707,6713 ---- { int idx; synpat_T *spp; ! # if defined(FEAT_RELTIME) && defined(FEAT_FLOAT) proftime_T tm; # endif int len; *************** *** 6737,6743 **** p->match = spp->sp_time.match; total_count += spp->sp_time.count; p->slowest = spp->sp_time.slowest; ! # ifdef FEAT_FLOAT profile_divide(&spp->sp_time.total, spp->sp_time.count, &tm); p->average = tm; # endif --- 6737,6743 ---- p->match = spp->sp_time.match; total_count += spp->sp_time.count; p->slowest = spp->sp_time.slowest; ! # if defined(FEAT_RELTIME) && defined(FEAT_FLOAT) profile_divide(&spp->sp_time.total, spp->sp_time.count, &tm); p->average = tm; # endif *** ../vim-8.2.2041/src/version.c 2020-11-24 20:13:21.550432713 +0100 --- src/version.c 2020-11-25 11:47:17.960488977 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2042, /**/ -- Proverb: A nightingale that forgets the lyrics is a hummingbird. /// Bram Moolenaar -- Bram@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 ///