From: Peter Howkins Date: Mon, 12 Nov 2012 15:03:37 +0000 (+0000) Subject: libDtPrint: Resolve 9 -Wunused-variable warnings. X-Git-Tag: 2.2.0d~34 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a10520c43c3ef772d187123afbf0c9463afbee78;p=oweals%2Fcde.git libDtPrint: Resolve 9 -Wunused-variable warnings. --- diff --git a/cde/lib/DtPrint/PrintOptions.c b/cde/lib/DtPrint/PrintOptions.c index 7a59705c..948527f0 100644 --- a/cde/lib/DtPrint/PrintOptions.c +++ b/cde/lib/DtPrint/PrintOptions.c @@ -397,7 +397,6 @@ _DtPrintHdrFtrFrameMenuWidgets( { int i; DtpoHdrFtrFrame *info; - Widget widget = NULL; if (frame == NULL) return; @@ -604,7 +603,6 @@ _DtPrintDestroyMarginFrameCB( ) { DtpoHdrFtrFrame *info = (DtpoHdrFtrFrame *) client_data; - Widget widget; if (info == NULL) return; XtFree((char*) info); @@ -630,7 +628,6 @@ _DtPrintCreateMarginFrame( Arg args[16]; int n; XmString xms; - int i; info = (DtpoMarginFrame *) XtMalloc( sizeof(DtpoMarginFrame) ); diff --git a/cde/lib/DtPrint/PrintSetupB.c b/cde/lib/DtPrint/PrintSetupB.c index 97cf5618..5835b0e3 100644 --- a/cde/lib/DtPrint/PrintSetupB.c +++ b/cde/lib/DtPrint/PrintSetupB.c @@ -1822,7 +1822,7 @@ Initialize( Cardinal *num_args) { DtPrintSetupBoxWidget new_w = (DtPrintSetupBoxWidget) nw ; - int i; + /* * Validate the Print Setup Mode */ @@ -2561,7 +2561,6 @@ SetValues( Cardinal *num_args) { DtPrintSetupBoxWidget current = (DtPrintSetupBoxWidget) cw ; - DtPrintSetupBoxWidget request = (DtPrintSetupBoxWidget) rw ; DtPrintSetupBoxWidget new_w = (DtPrintSetupBoxWidget) nw ; Boolean need_layout = False; @@ -3042,7 +3041,6 @@ UpdatePrinterNameCallback( XtPointer client_data, XtPointer call_data) { - XmComboBoxCallbackStruct* callback = (XmComboBoxCallbackStruct*)call_data; DtPrintSetupBoxWidget psub = (DtPrintSetupBoxWidget)client_data; if(PSUB_TimeoutId(psub) != (XtIntervalId)NULL) diff --git a/cde/lib/DtPrint/PsubDefProc.c b/cde/lib/DtPrint/PsubDefProc.c index ba1305c4..81fe4c8f 100644 --- a/cde/lib/DtPrint/PsubDefProc.c +++ b/cde/lib/DtPrint/PsubDefProc.c @@ -1433,10 +1433,6 @@ static void PresentHelp( DtPrintDefaultProcData* dpd = &PSUB_DefaultProcData(w); Widget wmshell_ancestor; Widget dialog_shell; - - char* hv = 0; - char* lid = 0; - wmshell_ancestor = GetWMShellAncestor(w); @@ -1665,7 +1661,6 @@ SelectPrinterCB( (XmSelectionBoxCallbackStruct*)call_data; Widget psub = (Widget)client_data; DtPrintDefaultProcData* dpd = &PSUB_DefaultProcData(psub); - int i; String printer_spec; /*