On Fri, Jan 18, 2008 at 13:29:51 +0100, Bram Moolenaar wrote:
>
> Adri Verhoef wrote:
>
> > Compilation of Vim 7.1.230 on an Alpha processor with Gcc yielded:
> >
> > gui_motif.c: In function 'find_replace_dialog_create':
> > gui_motif.c:3816: warning: cast to pointer from integer of different size
>
> That line would be:
>
> XtAddCallback(frdp->find, XmNactivateCallback,
> find_replace_callback,
> (XtPointer) (do_replace ? FRD_R_FINDNEXT : FRD_FINDNEXT));
>
> I don't see how this is different from similar calls, e.g.:
>
> XtAddCallback(frdp->replace, XmNactivateCallback,
> find_replace_callback, (XtPointer)FRD_REPLACE);
>
> Perhaps you can try out what would silence the compiler?
Here is the solution:
XtAddCallback(frdp->find, XmNactivateCallback,
find_replace_callback,
(do_replace ? (XtPointer)FRD_R_FINDNEXT : (XtPointer)FRD_FINDNEXT));
Cheers,
Adri
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---