From dd861efd3f64eb384dc782f57b0a2a539439e4d8 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Fri, 14 Mar 2008 01:46:52 -0300 Subject: [PATCH] Compile warning fixes. Remove declaration of unused variables. Most interesting case was a variable declared as const char *, and then redefined in a block as char[some-value]. --- src/xprintutil.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/xprintutil.c b/src/xprintutil.c index 58fe138..376c810 100644 --- a/src/xprintutil.c +++ b/src/xprintutil.c @@ -76,7 +76,9 @@ static void XpuDisposeEnumerateMediumSourceSizes( void **vc ); int XpuCheckExtension( Display *pdpy ) { +#ifdef DEBUG char *display = XDisplayString(pdpy); +#endif short major = 0, minor = 0; @@ -214,8 +216,6 @@ int XpuGetPrinter2( char *printer, char *display, Display **pdpyptr, XPContext * /* acceps "printer" or "printer@display" */ int XpuGetPrinter( const char *arg_printername, Display **pdpyptr, XPContext *pcontextptr ) { - Display *pdpy; - XPContext pcontext; char *printername; char *s; char *tok_lasts; @@ -490,7 +490,6 @@ static const char *search_next_space(const char *start) { const char *s = start; - int level = 0; if( !start ) return(NULL); @@ -669,7 +668,6 @@ Bool XpuParseMediumSourceSize( const char *value, char *boolbuf; size_t value_len; int num_input_items; - const char *cur_locale; if( value && value[0]!='{' && value[0]!='\0' ) return(False); @@ -969,7 +967,6 @@ XpuMediumSourceSizeList XpuGetMediumSourceSizeList( Display *pdpy, XPContext pco ma2, ma3, ma4; - char *value; void *tok_lasts; const char *tray_name, *medium_name; -- 1.5.3.2