[PATCH 1/1] Staging: android: binder: Fix possible uninitialized variable compile warning

Greg Kroah-Hartman gregkh at linuxfoundation.org
Wed Apr 18 23:53:04 UTC 2012


On Thu, Apr 19, 2012 at 01:17:11AM +0200, Javier Martinez Canillas wrote:
> GCC warns that buffer_size and buffer variables may be used uninitialized.
> Set default values to make the compiler happy and get rid of the build noise.

No, gcc is broken here then.  Please fix it instead, as we don't want to
paper over foolish things like that.

What version of gcc causes this? I don't see this with gcc 4.6.2,
perhaps you are using too old of a gcc?

greg k-h



More information about the devel mailing list