[patch] fixed compilation warnings on Linux x86_64 (GUI athena)

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

[patch] fixed compilation warnings on Linux x86_64 (GUI athena)

Dominique Pellé
Hi

On Linux x86_64 (GUI athena), I see the following compilation warnings:

gui_athena.c:2257:65: warning: cast to pointer from integer of different size

gui_at_sb.c:823:60: warning: cast to pointer from integer of different size
gui_at_sb.c:897:50: warning: cast to pointer from integer of different size
gui_at_sb.c:980:47: warning: cast to pointer from integer of different size

gui_at_fs.c:1644:50: warning: cast to pointer from integer of different size
gui_at_fs.c:1687:4: warning: cast to pointer from integer of different size
gui_at_fs.c:2590:48: warning: cast to pointer from integer of different size
gui_at_fs.c:2592:44: warning: cast to pointer from integer of different size
gui_at_fs.c:2614:43: warning: cast to pointer from integer of different size
gui_at_fs.c:2616:44: warning: cast to pointer from integer of different size
gui_at_fs.c:2666:33: warning: cast to pointer from integer of different size
gui_at_fs.c:2668:32: warning: cast to pointer from integer of different size
gui_at_fs.c:2670:32: warning: cast to pointer from integer of different size
gui_at_fs.c:2672:33: warning: cast to pointer from integer of different size
gui_at_fs.c:2674:38: warning: cast to pointer from integer of different size
gui_at_fs.c:2676:40: warning: cast to pointer from integer of different size

The double cast in attached patch silences the warnings but it's admittedly
not elegant.

-- 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-warning-athena-7.3a.patch (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [patch] fixed compilation warnings on Linux x86_64 (GUI athena)

Bram Moolenaar

Dominique Pelle wrote:

> On Linux x86_64 (GUI athena), I see the following compilation warnings:
>
> gui_athena.c:2257:65: warning: cast to pointer from integer of different size
>
> gui_at_sb.c:823:60: warning: cast to pointer from integer of different size
> gui_at_sb.c:897:50: warning: cast to pointer from integer of different size
> gui_at_sb.c:980:47: warning: cast to pointer from integer of different size
>
> gui_at_fs.c:1644:50: warning: cast to pointer from integer of different size
> gui_at_fs.c:1687:4: warning: cast to pointer from integer of different size
> gui_at_fs.c:2590:48: warning: cast to pointer from integer of different size
> gui_at_fs.c:2592:44: warning: cast to pointer from integer of different size
> gui_at_fs.c:2614:43: warning: cast to pointer from integer of different size
> gui_at_fs.c:2616:44: warning: cast to pointer from integer of different size
> gui_at_fs.c:2666:33: warning: cast to pointer from integer of different size
> gui_at_fs.c:2668:32: warning: cast to pointer from integer of different size
> gui_at_fs.c:2670:32: warning: cast to pointer from integer of different size
> gui_at_fs.c:2672:33: warning: cast to pointer from integer of different size
> gui_at_fs.c:2674:38: warning: cast to pointer from integer of different size
> gui_at_fs.c:2676:40: warning: cast to pointer from integer of different size
>
> The double cast in attached patch silences the warnings but it's admittedly
> not elegant.

Yeah, this is not nice.  But warnings aren't nice either.  I'll include
it.

--
"The question of whether computers can think is just like the question
of whether submarines can swim."      -- Edsger W. Dijkstra

 /// 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