From 304860b38d40e6eba5f7a59f184c91de73bb7ae4 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sat, 10 Jan 2015 10:59:45 -0600 Subject: [PATCH] wmcalc: Fix -Wunused-but-set-variable compiler warnings. --- wmcalc/wmcalc.c | 3 +-- wmcalc/wmcalcswitch.c | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/wmcalc/wmcalc.c b/wmcalc/wmcalc.c index f68714b..36bca61 100644 --- a/wmcalc/wmcalc.c +++ b/wmcalc/wmcalc.c @@ -106,7 +106,6 @@ int main( int argc, char **argv ) { XComposeStatus compose; char buffer[20]; int bufsize = 20; - int chcnt = 0; 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); /* KeywithMask - this allows Left, middle, and right button functions 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); KeywithMask = whichKey(ksym); ExecFunc( KeywithMask ); diff --git a/wmcalc/wmcalcswitch.c b/wmcalc/wmcalcswitch.c index f8b9846..ae3f374 100644 --- a/wmcalc/wmcalcswitch.c +++ b/wmcalc/wmcalcswitch.c @@ -479,13 +479,10 @@ int read_config(void) { int i = 0; int err_code = OKAY; char *line = NULL; - char *sepstr = NULL; char sep_ch = '\t'; char *cfg_var_ptr = NULL; - sepstr = &sep_ch; - if ((fp = fopen(configfile, "r")) == NULL) { // Can't find config file strcpy(configfile, CONFIGGLOBAL); // ...so try to open global config if ((fp = fopen(configfile, "r")) == NULL) { // Can't find global config file