[Pkg-wmaker-commits] [wmcalc] 27/65: wmcalc: Fix -Wunused-but-set-variable compiler warnings.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sun Aug 23 13:54:04 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmcalc.
commit 06e06f600a118712b7525c8b99c4b467a568a45e
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Sat Jan 10 10:59:45 2015 -0600
wmcalc: Fix -Wunused-but-set-variable compiler warnings.
---
wmcalc.c | 3 +--
wmcalcswitch.c | 3 ---
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/wmcalc.c b/wmcalc.c
index f68714b..36bca61 100644
--- a/wmcalc.c
+++ b/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/wmcalcswitch.c b/wmcalcswitch.c
index f8b9846..ae3f374 100644
--- a/wmcalcswitch.c
+++ b/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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcalc.git
More information about the Pkg-wmaker-commits
mailing list