[Pkg-wmaker-commits] [wmcliphist] 08/49: wmcliphist: Fix unused but set variable compiler warning.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 18 01:51:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmcliphist.

commit f472aad7d5e7c66f7f410b4295ca8ea692952029
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sat Nov 22 20:48:40 2014 -0600

    wmcliphist: Fix unused but set variable compiler warning.
    
    In particular,
    utils.c: In function ‘from_utf8’:
    utils.c:13:7: warning: variable ‘error_code’ set but not used
     [-Wunused-but-set-variable]
      gint error_code;
           ^
---
 utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils.c b/utils.c
index c769f3c..7a88962 100644
--- a/utils.c
+++ b/utils.c
@@ -10,11 +10,11 @@ from_utf8(gchar *string) {
 	GError	*error;
 	gchar	*converted;
 	/* gchar	*error_msg; */
-	gint	error_code;
+	/* gint	error_code; */
 
 	converted = g_locale_from_utf8(string, -1, &bytes_read, &bytes_written,
 			&error);
-	error_code = (error == NULL) ? 0 : error->code;
+	/* error_code = (error == NULL) ? 0 : error->code; */
         /* 
 	 * fprintf(stderr, "from_utf8: %d b read, %d b written, error: %d\n",
 	 * 		bytes_read, bytes_written, error_code);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcliphist.git



More information about the Pkg-wmaker-commits mailing list