From owner-freebsd-current@FreeBSD.ORG Wed Jan 23 18:20:39 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 89FA328D for ; Wed, 23 Jan 2013 18:20:39 +0000 (UTC) (envelope-from jasone@freebsd.org) Received: from canonware.com (canonware.com [204.109.63.53]) by mx1.freebsd.org (Postfix) with ESMTP id 70A176A5 for ; Wed, 23 Jan 2013 18:20:39 +0000 (UTC) Received: from jemac.thefacebook.com (unknown [173.252.71.7]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by canonware.com (Postfix) with ESMTPSA id 865EF286E2; Wed, 23 Jan 2013 10:20:33 -0800 (PST) Subject: Re: Compilation error (pkgng) Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Jason Evans In-Reply-To: Date: Wed, 23 Jan 2013 10:20:32 -0800 Content-Transfer-Encoding: 7bit Message-Id: References: To: Alie Tan X-Mailer: Apple Mail (2.1283) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2013 18:20:39 -0000 On Jan 23, 2013, at 12:14 AM, Alie Tan wrote: > Seems this check-in causing compilation error: > > http://freshbsd.org/commit/freebsd/r245828 > > -nonliteral -c /usr/src/usr.sbin/pkg_install/lib/pkgng.c -o pkgng.o > /usr/src/usr.sbin/pkg_install/lib/pkgng.c:53:45: error: expected ')' > rc = snprintf(pkgngpath, sizeof(pkgngpath) "%s/local.sqlite", > pkgngdir); > ^ > /usr/src/usr.sbin/pkg_install/lib/pkgng.c:53:15: note: to match this '(' > rc = snprintf(pkgngpath, sizeof(pkgngpath) "%s/local.sqlite", > pkgngdir); > ^ > /usr/src/usr.sbin/pkg_install/lib/pkgng.c:54:9: warning: comparison of > integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] > if (rc >= sizeof(pkgngpath)) { > ~~ ^ ~~~~~~~~~~~~~~~~~ > 1 warning and 1 error generated. Fixed by r245837. Thanks, Jason