bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] maint: expr: avoid compiler warnings without GMP


From: Eric Blake
Subject: Re: [PATCH] maint: expr: avoid compiler warnings without GMP
Date: Wed, 23 Sep 2009 06:16:02 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Pádraig Brady on 9/23/2009 5:58 AM:
> Another ununused parameter warning patch attached

> +static void mpz_init_set_ui (mpz_t z, unsigned long i) { z[0] = i; (void) i; 
> }

Doesn't the assignment count as a use of i, so that the "(void) i;" is
redundant?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkq6EYIACgkQ84KuGfSFAYDy4QCfa8krOj3DyolErc2dBEzFxTMu
8kgAn1qI+vNiY1KDW2nEu5xtQ7sl/pKr
=tixh
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]