libDtPrint: Resolve 9 -Wunused-variable warnings.
authorPeter Howkins <flibble@users.sf.net>
Mon, 12 Nov 2012 15:03:37 +0000 (15:03 +0000)
committerPeter Howkins <flibble@users.sf.net>
Mon, 12 Nov 2012 15:03:37 +0000 (15:03 +0000)
cde/lib/DtPrint/PrintOptions.c
cde/lib/DtPrint/PrintSetupB.c
cde/lib/DtPrint/PsubDefProc.c

index 7a59705c7766bc53fd2213bfc4d0371a4a20224a..948527f0927433f998bcdb7f81a47ea6ed1c0af4 100644 (file)
@@ -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) );
 
index 97cf56187687d2d4bba89b4634e2b4bda589e8c1..5835b0e385ae228cc1d117e3d7ca65a48cc531ec 100644 (file)
@@ -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)
index ba1305c44926caa314e0a5a977c1686bb4ecc5f2..81fe4c8f1da59db31cb6c13840408ad28d492042 100644 (file)
@@ -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;
 
     /*