[PATCH xf86-video-nv] Fix compiler warning.

Aaron Plattner aplattner at nvidia.com
Tue Mar 1 18:15:57 PST 2011


On Tue, Mar 01, 2011 at 05:09:10PM -0800, Cyril Brulebois wrote:
> Get rid of this with CFLAGS="-Wall -Werror":
> |   CC     g80_display.lo
> | cc1: warnings being treated as errors
> | g80_display.c: In function ‘G80CrtcSetPClk’:
> | g80_display.c:216: error: unused variable ‘i’
> 
> Signed-off-by: Cyril Brulebois <kibi at debian.org>
> ---
>  src/g80_display.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/g80_display.c b/src/g80_display.c
> index ae946a8..84e731c 100644
> --- a/src/g80_display.c
> +++ b/src/g80_display.c
> @@ -213,7 +213,7 @@ G80CrtcSetPClk(xf86CrtcPtr crtc)
>      if(pNv->architecture <= 0xa0 ||
>         pNv->architecture == 0xaa ||
>         pNv->architecture == 0xac) {
> -        int lo_n, lo_m, hi_n, hi_m, p, i;
> +        int lo_n, lo_m, hi_n, hi_m, p;
>          CARD32 lo = pNv->reg[(0x00614104+headOff)/4];
>          CARD32 hi = pNv->reg[(0x00614108+headOff)/4];
>  
> -- 
> 1.7.2.3

Thanks, Cyril.  Pushed:

   9510808..2b17d1a  master -> master


More information about the xorg-devel mailing list