[Python-Dev] [Python-checkins] cpython (merge 3.3 -> default): Silence warning about set but unused variable inside compile_atom() in

Ronald Oussoren ronaldoussoren at mac.com
Thu Aug 1 09:03:33 CEST 2013


On 31 Jul, 2013, at 23:50, christian.heimes <python-checkins at python.org> wrote:

> http://hg.python.org/cpython/rev/0e09588a3bc2
> changeset:   84939:0e09588a3bc2
> parent:      84937:809a64ecd5f1
> parent:      84938:83a55ca935f0
> user:        Christian Heimes <christian at cheimes.de>
> date:        Wed Jul 31 23:48:04 2013 +0200
> summary:
>  Silence warning about set but unused variable inside compile_atom() in non-debug builds
> 
> files:
>  Parser/pgen.c |  1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> 
> diff --git a/Parser/pgen.c b/Parser/pgen.c
> --- a/Parser/pgen.c
> +++ b/Parser/pgen.c
> @@ -283,6 +283,7 @@
> 
>     REQ(n, ATOM);
>     i = n->n_nchildren;
> +    (void)i; /* Don't warn about set but unused */
>     REQN(i, 1);

Why didn't you change this to  "REQN(n->nchilderen, 1);" (and then remove variable "i")? 

Ronald

>     n = n->n_child;
>     if (n->n_type == LPAR) {
> 
> -- 
> Repository URL: http://hg.python.org/cpython
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins



More information about the Python-Dev mailing list