Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2015 03:33:18 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r278932 - in head/lib/libc: rpc stdio
Message-ID:  <201502180333.t1I3XIp3023933@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Wed Feb 18 03:33:17 2015
New Revision: 278932
URL: https://svnweb.freebsd.org/changeset/base/278932

Log:
  libc: clean some set-but-not-used errors.
  
  These were found by gcc 5.0 on Dragonfly BSD, however I
  made no attempt to silence the false positives.
  
  Obtained from:	DragonFly (cf515c3a6f3a8964ad592e524442bc628f8ed63b)

Modified:
  head/lib/libc/rpc/clnt_dg.c
  head/lib/libc/rpc/rpc_soc.c
  head/lib/libc/stdio/xprintf_float.c

Modified: head/lib/libc/rpc/clnt_dg.c
==============================================================================
--- head/lib/libc/rpc/clnt_dg.c	Wed Feb 18 03:02:03 2015	(r278931)
+++ head/lib/libc/rpc/clnt_dg.c	Wed Feb 18 03:33:17 2015	(r278932)
@@ -327,7 +327,7 @@ clnt_dg_call(cl, proc, xargs, argsp, xre
 	struct sockaddr *sa;
 	sigset_t mask;
 	sigset_t newmask;
-	socklen_t inlen, salen;
+	socklen_t salen;
 	ssize_t recvlen = 0;
 	int kin_len, n, rpc_lock_value;
 	u_int32_t xid;
@@ -520,7 +520,6 @@ get_reply:
 				goto call_again_same_xid;
 		}
 	}
-	inlen = (socklen_t)recvlen;
 
 	/*
 	 * now decode and validate the response

Modified: head/lib/libc/rpc/rpc_soc.c
==============================================================================
--- head/lib/libc/rpc/rpc_soc.c	Wed Feb 18 03:02:03 2015	(r278931)
+++ head/lib/libc/rpc/rpc_soc.c	Wed Feb 18 03:33:17 2015	(r278932)
@@ -462,12 +462,10 @@ clntunix_create(raddr, prog, vers, sockp
 	u_int recvsz;
 {
 	struct netbuf *svcaddr;
-	struct netconfig *nconf;
 	CLIENT *cl;
 	int len;
 
 	cl = NULL;
-	nconf = NULL;
 	svcaddr = NULL;
 	if ((raddr->sun_len == 0) ||
 	   ((svcaddr = malloc(sizeof(struct netbuf))) == NULL ) ||

Modified: head/lib/libc/stdio/xprintf_float.c
==============================================================================
--- head/lib/libc/stdio/xprintf_float.c	Wed Feb 18 03:02:03 2015	(r278931)
+++ head/lib/libc/stdio/xprintf_float.c	Wed Feb 18 03:33:17 2015	(r278932)
@@ -168,7 +168,6 @@ __printf_render_float(struct __printf_io
 	int realsz;		/* field size expanded by dprec, sign, etc */
 	int dprec;		/* a copy of prec if [diouxX], 0 otherwise */
 	char ox[2];		/* space for 0x; ox[1] is either x, X, or \0 */
-	int prsize;             /* max size of printed field */
 	int ret;		/* return value accumulator */
 	char *decimal_point;	/* locale specific decimal point */
 	int n2;			/* XXX: for PRINTANDPAD */
@@ -344,8 +343,6 @@ here:
 	if (ox[1])
 		realsz += 2;
 
-	prsize = pi->width > realsz ? pi->width : realsz;
-
 	/* right-adjusting blank padding */
 	if (pi->pad != '0' && pi->left == 0)
 		ret += __printf_pad(io, pi->width - realsz, 0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502180333.t1I3XIp3023933>