2016-03-18 21:40 GMT+03:00 Bram Moolenaar <[email protected]>:
>
> Christian Brabandt wrote:
>
>> after 7.4.1589 I still see
>>
>> eval.c: In function ‘handle_subscript’:
>> eval.c:21749:17: warning: declaration of ‘pt’ shadows a previous local 
>> [-Wshadow]
>>       partial_T *pt = (partial_T *)alloc_clear(sizeof(partial_T));
>>                  ^
>> eval.c:21663:16: warning: shadowed declaration is here [-Wshadow]
>>      partial_T *pt = NULL;
>>                 ^
>
> Hmm, I thought I had the compiler flags set to catch that.  Apparently
> -Wall and -Wextra don't do that, I have to explicitly add -Wshadow.

If you use clang you may enable all warnings using -Weverything. I do
not know anything like this for GCC.

>
> --
> Proof techniques #2: Proof by Oddity.
>         SAMPLE: To prove that horses have an infinite number of legs.
> (1) Horses have an even number of legs.
> (2) They have two legs in back and fore legs in front.
> (3) This makes a total of six legs, which certainly is an odd number of
>     legs for a horse.
> (4) But the only number that is both odd and even is infinity.
> (5) Therefore, horses must have an infinite number of legs.
>
>  /// 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.

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