Armin wrote:
> I recently built vim 7.1 with patches 1-293 on HP-UX 11.23 (Itanium)
> with HP Ansi C-Compiler. vim compiles and runs fine but I get some
> warnings. I'm no programmer so I can't seperate unimportant from
> important warnings. Maybe this is of interest:
> I'm building with --prefix=/opt/vim --with-x --disable-gtktest
> --enable-motif-check --with-tlib=curses
> and get
>
> cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF
> -I/usr/local/include -g -o objects/mbyte.o mbyte.c
> "mbyte.c", line 4934: warning #2167-D: argument of type "void (*)()" is
> incompatible with parameter of type "XIMProc"
> xim_instantiate_cb, NULL);
> ^
>
> "mbyte.c", line 4958: warning #2167-D: argument of type "void (*)()" is
> incompatible with parameter of type "XIMProc"
> xim_instantiate_cb, NULL);
> ^
>
> "mbyte.c", line 4983: warning #2167-D: argument of type "void (*)()" is
> incompatible with parameter of type "XIMProc"
> xim_instantiate_cb, NULL);
> ^
I would simply ignore these. According to my manpage the type should be
XIDProc. Probably can't make it work without warnings for everybody.
> cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF
> -I/usr/local/include -g -o objects/option.o option.c
> "option.c", line 3428: warning #4275-D: constant out of range ([0 - 0])
> for
> the operator
> if (options[opt_idx].indir == PV_SCROLL)
> ^
>
> "option.c", line 3446: warning #4275-D: constant out of range ([0 - 0])
> for
> the operator
> if (options[opt_idx].indir == PV_ML && getuid() == ROOT_UID)
> ^
>
> "option.c", line 8632: warning #4275-D: constant out of range ([0 - 0])
> for
> the operator
> p->indir == PV_SYN
> ^
Hmm, perhaps it helps if you change the idopt_T definition to:
typedef enum
{
PV_NONE = 0,
PV_MAXVAL = 0xffff
} idopt_T;
--
Q: Is selling software the same as selling hardware?
A: No, good hardware is sold new, good software has already been used by many.
/// Bram Moolenaar -- [EMAIL PROTECTED] -- 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.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---