[PATCH xf86-input-aiptek] Address compiler warning.

Julien Cristau jcristau at debian.org
Thu Apr 28 07:35:10 PDT 2011


On Wed, Jan 19, 2011 at 11:47:33 +1000, Peter Hutterer wrote:

> 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.
> 
Pushed, belatedly.

Cheers,
Julien


More information about the xorg-devel mailing list