John Marriott wrote:

> I get these warnings when compiling on HP-UX:
> 
> cc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -o objects/misc1.o misc1.c
> cc: "misc1.c", line 10178: warning 604: Pointers are not 
> assignment-compatible.
> cc: "misc1.c", line 10178: warning 563: Argument #1 is not the correct type.
> cc: "misc1.c", line 10940: warning 604: Pointers are not 
> assignment-compatible.
> cc: "misc1.c", line 10940: warning 563: Argument #1 is not the correct type.
> 
> Adding a "char *" cast to the buf variable (line 10178) and the f 
> variable (line 10940) seems to make the compiler happy, like so:
> Change line 10178 from:
> if ((flags & EW_ALLLINKS) ? mch_lstat(buf, &sb) >= 0
> to:
> if ((flags & EW_ALLLINKS) ? mch_lstat((char *)buf, &sb) >= 0
> 
> Change line 10940 from:
> ? mch_lstat(f, &sb) < 0 : mch_getperm(f) < 0))
> to
> ? mch_lstat((char *)f, &sb) < 0 : mch_getperm(f) < 0))

Yeah, my overnight test program found these too.
I'll turn this into a patch.

-- 
You were lucky. We lived for three months in a brown paper bag in a 
septic tank. We used to have to get up at six o'clock in the morning, 
clean the bag, eat a crust of stale bread, go to work down mill for 
fourteen hours a day week in-week out. When we got home, our Dad
would thrash us to sleep with his belt!

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui