John Little wrote:

> Posting this in case somebody else falls down the same rabbit hole I did.
> 
> I've compiled vim with gcc -Wextra for many years, uncommenting a line in the 
> distributed Makefile to enable this and a few other strict warnings.  
> Yesterday upon getting the latest source and compiling I got lots, 44, of 
> -Wcast-function-type warnings.  The warnings are sort of valid; in the case I 
> looked at there's a mismatch of the number of parameters in a function 
> pointer, but the missing one is not used anyway.
> 
> One of the cases is in GTK code, which we're unlikely to get changed, so I 
> suppose we should just ignore these warnings.  Other projects are doing this. 
>  So, if one wants to use -Wextra, I suggest adding -Wno-cast-function-type as 
> well.
> 
> Maybe the comment line in the Makefile could be changed.

I'll add a note above where -Wextra is mentioned, thanks.

-- 
You can be stopped by the police for biking over 65 miles per hour.
You are not allowed to walk across a street on your hands.
                [real standing laws in Connecticut, United States of America]

 /// Bram Moolenaar -- [email protected] -- 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui