[PATCH xf86-input-aiptek] Address compiler warning.
Peter Hutterer
peter.hutterer at who-t.net
Tue Jan 18 17:47:33 PST 2011
On Mon, Jan 17, 2011 at 11:04:50PM -0500, Trevor Woerner wrote:
> From: Trevor Woerner <twoerner at gmail.com>
>
> When compiling gcc warns:
>
> 'rc' may be used uninitialized in this function
>
> which is plausible if none of the "if/else" cases are matched.
>
> Signed-off-by: Trevor Woerner <twoerner at gmail.com>
> ---
> src/xf86Aiptek.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/xf86Aiptek.c b/src/xf86Aiptek.c
> index f128fa0..d9a7665 100644
> --- a/src/xf86Aiptek.c
> +++ b/src/xf86Aiptek.c
> @@ -1808,7 +1808,7 @@ xf86AiptekInit(InputDriverPtr drv,
> InputInfoPtr pInfos;
> char* s;
> int shared;
> - int rc;
> + int rc = BadValue;
>
> aiptekDrv = drv;
>
> --
> 1.7.4.rc1.3.gbc2d1
>
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
please push this to the repo, thanks.
Cheers,
Peter
More information about the xorg-devel
mailing list