wmcalc: Fix -Wunused-but-set-variable compiler warnings.
This commit is contained in:
		
							parent
							
								
									9d9d2500d7
								
							
						
					
					
						commit
						304860b38d
					
				
					 2 changed files with 1 additions and 5 deletions
				
			
		| 
						 | 
					@ -106,7 +106,6 @@ int main( int argc, char **argv ) {
 | 
				
			||||||
  XComposeStatus compose;
 | 
					  XComposeStatus compose;
 | 
				
			||||||
  char buffer[20];
 | 
					  char buffer[20];
 | 
				
			||||||
  int bufsize = 20;
 | 
					  int bufsize = 20;
 | 
				
			||||||
  int chcnt = 0;
 | 
					 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  strcpy(configfile, getenv("HOME"));  // Added to wmbutton by Casey Harkin, 3/6/99
 | 
					  strcpy(configfile, getenv("HOME"));  // Added to wmbutton by Casey Harkin, 3/6/99
 | 
				
			||||||
| 
						 | 
					@ -303,7 +302,7 @@ int main( int argc, char **argv ) {
 | 
				
			||||||
      //      ksym = XLookupKeysym(&(report.xkey), report.xkey.state);
 | 
					      //      ksym = XLookupKeysym(&(report.xkey), report.xkey.state);
 | 
				
			||||||
      /* KeywithMask - this allows Left, middle, and right button functions 
 | 
					      /* KeywithMask - this allows Left, middle, and right button functions 
 | 
				
			||||||
	 to be implemented via keyboard */
 | 
						 to be implemented via keyboard */
 | 
				
			||||||
      chcnt = XLookupString(&(report.xkey), buffer, bufsize, &ksym, &compose);
 | 
					      XLookupString(&(report.xkey), buffer, bufsize, &ksym, &compose);
 | 
				
			||||||
      if (Verbose) printf("Keysym is: 0x%x\n", (int) ksym);
 | 
					      if (Verbose) printf("Keysym is: 0x%x\n", (int) ksym);
 | 
				
			||||||
      KeywithMask = whichKey(ksym);
 | 
					      KeywithMask = whichKey(ksym);
 | 
				
			||||||
      ExecFunc( KeywithMask );
 | 
					      ExecFunc( KeywithMask );
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -479,13 +479,10 @@ int read_config(void) {
 | 
				
			||||||
  int i = 0;
 | 
					  int i = 0;
 | 
				
			||||||
  int err_code = OKAY;
 | 
					  int err_code = OKAY;
 | 
				
			||||||
  char *line   = NULL;
 | 
					  char *line   = NULL;
 | 
				
			||||||
  char *sepstr = NULL;
 | 
					 | 
				
			||||||
  char  sep_ch = '\t';
 | 
					  char  sep_ch = '\t';
 | 
				
			||||||
  char *cfg_var_ptr = NULL;
 | 
					  char *cfg_var_ptr = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  sepstr = &sep_ch;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  if ((fp = fopen(configfile, "r")) == NULL) {    // Can't find config file
 | 
					  if ((fp = fopen(configfile, "r")) == NULL) {    // Can't find config file
 | 
				
			||||||
    strcpy(configfile, CONFIGGLOBAL);             // ...so try to open global config
 | 
					    strcpy(configfile, CONFIGGLOBAL);             // ...so try to open global config
 | 
				
			||||||
    if ((fp = fopen(configfile, "r")) == NULL) {  // Can't find global config file
 | 
					    if ((fp = fopen(configfile, "r")) == NULL) {  // Can't find global config file
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue