[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-crypto-vger
Subject: Re: [PATCH] crypto/testmgr: fix uninitialized warning from gcc
From: Herbert Xu <herbert () gondor ! apana ! org ! au>
Date: 2009-12-11 6:28:22
Message-ID: 20091211062822.GB28849 () gondor ! apana ! org ! au
[Download RAW message or body]
On Wed, Dec 09, 2009 at 06:52:04AM -0500, Mike Frysinger wrote:
> Since err is not set to a value if tcount is 0, gcc issues a warning:
> crypto/testmgr.c: In function ‘test_cprng':
> crypto/testmgr.c:1204: warning: ‘err' may be used uninitialized in this function
>
> Since this is test code, forcing initialized sanity should be fine.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Thanks but a similar patch has already been merged.
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic