[vim/vim] Fix clang compiler warnings in the MS-Windows build (PR #10538)

8 views
Skip to first unread message

Yegappan Lakshmanan

unread,
Jun 7, 2022, 10:35:38 PM6/7/22
to vim/vim, Subscribed

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/10538

Commit Summary

  • b3c0fd1 Fix clang compiler warnings in the MS-Windows build

File Changes

(5 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10538@github.com>

codecov[bot]

unread,
Jun 7, 2022, 10:43:41 PM6/7/22
to vim/vim, Subscribed

Codecov Report

Merging #10538 (b3c0fd1) into master (aca12fd) will increase coverage by 0.88%.
The diff coverage is n/a.

@@            Coverage Diff             @@

##           master   #10538      +/-   ##

==========================================

+ Coverage   81.67%   82.56%   +0.88%     

==========================================

  Files         158      148      -10     

  Lines      185324   172684   -12640     

  Branches    41909    39049    -2860     

==========================================

- Hits       151372   142583    -8789     

+ Misses      21502    17518    -3984     

- Partials    12450    12583     +133     
Flag Coverage Δ
huge-clang-none 82.56% <ø> (+<0.01%) ⬆️
linux 82.56% <ø> (+<0.01%) ⬆️
mingw-x64-HUGE ?
mingw-x64-HUGE-gui ?
windows ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/fileio.c 75.28% <ø> (-0.66%) ⬇️
src/highlight.c 78.69% <0.00%> (-2.70%) ⬇️
src/time.c 87.08% <0.00%> (-2.56%) ⬇️
src/misc2.c 86.38% <0.00%> (-2.52%) ⬇️
src/buffer.c 84.15% <0.00%> (-2.39%) ⬇️
src/help.c 80.07% <0.00%> (-2.38%) ⬇️
src/gui.c 71.05% <0.00%> (-2.08%) ⬇️
src/libvterm/src/screen.c 51.96% <0.00%> (-2.04%) ⬇️
src/session.c 63.15% <0.00%> (-1.94%) ⬇️
src/menu.c 81.03% <0.00%> (-1.86%) ⬇️
... and 130 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aca12fd...b3c0fd1. Read the comment docs.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10538/c1149391687@github.com>

K.Takata

unread,
Jun 7, 2022, 10:52:09 PM6/7/22
to vim/vim, Subscribed

@k-takata commented on this pull request.


In src/dosinst.c:

> @@ -212,7 +212,7 @@ check_unpack(void)

 	printf("ERROR: Cannot find filetype.vim in \"%s\"\n", installdir);

 	printf("It looks like you did not unpack the runtime archive.\n");

 	printf("You must unpack the runtime archive \"vim%srt.zip\" before installing.\n",

If line 215 is changed from VIM_VERSION_NODOT + 3 to VIM_VERSION_NODOT, then this line should be changed as follows:

⬇️ Suggested change
-	printf("You must unpack the runtime archive \"vim%srt.zip\" before installing.\n",

+	printf("You must unpack the runtime archive \"%srt.zip\" before installing.\n",


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10538/review/999050180@github.com>

Yegappan Lakshmanan

unread,
Jun 7, 2022, 11:32:14 PM6/7/22
to vim/vim, Push

@yegappan pushed 1 commit.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10538/push/10100014945@github.com>

Yegappan Lakshmanan

unread,
Jun 7, 2022, 11:32:53 PM6/7/22
to vim_dev, reply+ACY5DGGUK4O4RHSJDY...@reply.github.com, vim/vim, Subscribed
Hi,

On Tue, Jun 7, 2022 at 7:52 PM K.Takata <vim-dev...@256bit.org> wrote:

@k-takata commented on this pull request.


In src/dosinst.c:

> @@ -212,7 +212,7 @@ check_unpack(void)

 	printf("ERROR: Cannot find filetype.vim in \"%s\"\n", installdir);

 	printf("It looks like you did not unpack the runtime archive.\n");

 	printf("You must unpack the runtime archive \"vim%srt.zip\" before installing.\n",

If line 215 is changed from VIM_VERSION_NODOT + 3 to VIM_VERSION_NODOT, then this line should be changed as follows:


VIM_VERSION_NODOT is defined as a string. The current code is trying to add a number to the string.
 
⬇️ Suggested change
-	printf("You must unpack the runtime archive \"vim%srt.zip\" before installing.\n",

+	printf("You must unpack the runtime archive \"%srt.zip\" before installing.\n",



Updated the PR with this change.

- Yegappan

vim-dev ML

unread,
Jun 7, 2022, 11:33:11 PM6/7/22
to vim/vim, vim-dev ML, Your activity

Hi,

On Tue, Jun 7, 2022 at 7:52 PM K.Takata ***@***.***> wrote:

> ***@***.**** commented on this pull request.
> ------------------------------
>
> In src/dosinst.c
> <https://github.com/vim/vim/pull/10538#discussion_r891868223>:

>
> > @@ -212,7 +212,7 @@ check_unpack(void)
>
> printf("ERROR: Cannot find filetype.vim in \"%s\"\n", installdir);
>
> printf("It looks like you did not unpack the runtime archive.\n");
>
> printf("You must unpack the runtime archive \"vim%srt.zip\" before installing.\n",
>
>
> If line 215 is changed from VIM_VERSION_NODOT + 3 to VIM_VERSION_NODOT,
> then this line should be changed as follows:
>

VIM_VERSION_NODOT is defined as a string. The current code is trying to add
a number to the string.


> ⬇️ Suggested change
>
> - printf("You must unpack the runtime archive \"vim%srt.zip\" before installing.\n",
>
> + printf("You must unpack the runtime archive \"%srt.zip\" before installing.\n",
>
>
>
>
Updated the PR with this change.

- Yegappan


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10538/c1149417933@github.com>

Yegappan Lakshmanan

unread,
Jun 8, 2022, 12:17:00 AM6/8/22
to vim/vim, vim-dev ML, Push

@yegappan pushed 1 commit.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/10538/push/10100244296@github.com>

K.Takata

unread,
Jun 8, 2022, 1:09:29 AM6/8/22
to vim/vim, vim-dev ML, Comment

VIM_VERSION_NODOT is defined as a string. The current code is trying to add
a number to the string.

Yes, it was intended. VIM_VERSION_NODOT is "vim82". Adding 3 to it means that the pointer points to the third character of the string. So, VIM_VERSION_NODOT + 3 is the same as "82".


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/pull/10538/c1149468222@github.com>

Bram Moolenaar

unread,
Jun 8, 2022, 10:14:39 AM6/8/22
to vim/vim, vim-dev ML, Comment

Closed #10538 via ebb01bd.


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/pull/10538/issue_event/6770307737@github.com>

Reply all
Reply to author
Forward
0 new messages