[patch] fixed compilation warnings with Motif GUI

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch] fixed compilation warnings with Motif GUI

Dominique Pellé
Hi

Building Vim-7.3a (2245:1bac28a53fae) with:

$ ./configure --with-features=tiny --enable-gui=motif --enable-workshop
$ make

I see the following compilation warnings:

menu.c:2534:1: warning: ‘menu_unescape_name’ defined but not used

gui_beval.c:31:12: warning: unused variable ‘save_curbuf’
gui_beval.c:30:13: warning: unused variable ‘bexpr’
gui_beval.c:29:10: warning: unused variable ‘winnr’
gui_beval.c:28:20: warning: unused variable ‘result’
gui_beval.c:27:13: warning: unused variable ‘text’
gui_beval.c:26:14: warning: unused variable ‘lnum’
gui_beval.c:25:9: warning: unused variable ‘use_sandbox’
gui_beval.c:24:9: warning: unused variable ‘col’
gui_beval.c:23:12: warning: unused variable ‘wp’

Fixed in attached patch.
-- Dominique

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

fixed-warnings-motif-7.3a.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [patch] fixed compilation warnings with Motif GUI

Bram Moolenaar

Dominique Pelle wrote:

> Building Vim-7.3a (2245:1bac28a53fae) with:
>
> $ ./configure --with-features=3Dtiny --enable-gui=3Dmotif --enable-workshop
> $ make
>
> I see the following compilation warnings:
>
> menu.c:2534:1: warning: =91menu_unescape_name=92 defined but not used
>
> gui_beval.c:31:12: warning: unused variable =91save_curbuf=92
> gui_beval.c:30:13: warning: unused variable =91bexpr=92
> gui_beval.c:29:10: warning: unused variable =91winnr=92
> gui_beval.c:28:20: warning: unused variable =91result=92
> gui_beval.c:27:13: warning: unused variable =91text=92
> gui_beval.c:26:14: warning: unused variable =91lnum=92
> gui_beval.c:25:9: warning: unused variable =91use_sandbox=92
> gui_beval.c:24:9: warning: unused variable =91col=92
> gui_beval.c:23:12: warning: unused variable =91wp=92
>
> Fixed in attached patch.

I'll include it, thanks!

--
You're as much use as a condom machine at the Vatican.
                  -- Rimmer to Holly in Red Dwarf 'Queeg'

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php