[PATCH 2/2 v2] Staging:android: Initialise buffer and buffer_size before used

Arve Hjønnevåg arve at android.com
Wed Mar 7 04:01:58 UTC 2012


On Tue, Mar 6, 2012 at 6:36 PM, Zhengwang Ruan <ruan.zhengwang at gmail.com> wrote:
> GCC warns 'buffer' and 'buffer_size' are used with being uninitialized, and
> 'buffer' is used as returned value, and 'buffer_size' is initialized using
> uninitialized_var to clear warning.

Why do you clear the warning on buffer_size with uninitialized_var()
but not on buffer? Neither variable is used before being initialized.

-- 
Arve Hjønnevåg



More information about the devel mailing list