Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2011 20:10:12 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228537 - head/lib/libc/resolv
Message-ID:  <201112152010.pBFKAC48068909@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Thu Dec 15 20:10:12 2011
New Revision: 228537
URL: http://svn.freebsd.org/changeset/base/228537

Log:
  Remove meaningless self-assignment in res_send.c, otherwise clang will
  warn about it.  I guess this was originally done to silence a bogus
  warning by an older version of gcc, but I could not reproduce it with
  any version of gcc that I have access to.
  
  MFC after:	1 week

Modified:
  head/lib/libc/resolv/res_send.c

Modified: head/lib/libc/resolv/res_send.c
==============================================================================
--- head/lib/libc/resolv/res_send.c	Thu Dec 15 19:42:25 2011	(r228536)
+++ head/lib/libc/resolv/res_send.c	Thu Dec 15 20:10:12 2011	(r228537)
@@ -1102,8 +1102,6 @@ Aerror(const res_state statp, FILE *file
 	char hbuf[NI_MAXHOST];
 	char sbuf[NI_MAXSERV];
 
-	alen = alen;
-
 	if ((statp->options & RES_DEBUG) != 0U) {
 		if (getnameinfo(address, alen, hbuf, sizeof(hbuf),
 		    sbuf, sizeof(sbuf), niflags)) {



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