fb: Simplify logic, get rid of set but unused variable.
wrapped is only useful is FB_ACCESS_WRAPPER is set; simplify the logic accordingly, and only set it when that's defined. The following warning goes away accordingly: | CC libfb_la-fbarc.lo | fbarc.c: In function 'fbPolyArc': | fbarc.c:71:11: warning: variable 'wrapped' set but not used [-Wunused-but-set-variable] Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Cyril Brulebois <kibi@debian.org>
This commit is contained in:
		
							parent
							
								
									9a8bfc2c06
								
							
						
					
					
						commit
						8da16898d9
					
				| 
						 | 
				
			
			@ -68,15 +68,12 @@ fbPolyArc (DrawablePtr	pDrawable,
 | 
			
		|||
	    BoxRec	box;
 | 
			
		||||
	    int		x2, y2;
 | 
			
		||||
	    RegionPtr	cclip;
 | 
			
		||||
	    int		wrapped = 0;
 | 
			
		||||
#ifdef FB_ACCESS_WRAPPER
 | 
			
		||||
	    int		wrapped = 1;
 | 
			
		||||
#endif
 | 
			
		||||
	    
 | 
			
		||||
	    cclip = fbGetCompositeClip (pGC);
 | 
			
		||||
	    fbGetDrawable (pDrawable, dst, dstStride, dstBpp, dstXoff, dstYoff);
 | 
			
		||||
#ifdef FB_ACCESS_WRAPPER
 | 
			
		||||
	    wrapped = 1;
 | 
			
		||||
#else
 | 
			
		||||
	    wrapped = 0;
 | 
			
		||||
#endif
 | 
			
		||||
	    while (narcs--)
 | 
			
		||||
	    {
 | 
			
		||||
		if (miCanZeroArc (parcs))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue