From owner-svn-ports-all@FreeBSD.ORG Thu Nov 27 19:18:14 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AA93230E; Thu, 27 Nov 2014 19:18:14 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7CF5398; Thu, 27 Nov 2014 19:18:14 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sARJIESu003731; Thu, 27 Nov 2014 19:18:14 GMT (envelope-from sbruno@FreeBSD.org) Received: (from sbruno@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sARJIEXC003729; Thu, 27 Nov 2014 19:18:14 GMT (envelope-from sbruno@FreeBSD.org) Message-Id: <201411271918.sARJIEXC003729@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: sbruno set sender to sbruno@FreeBSD.org using -f From: Sean Bruno Date: Thu, 27 Nov 2014 19:18:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r373519 - head/devel/deforaos-libsystem/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2014 19:18:14 -0000 Author: sbruno Date: Thu Nov 27 19:18:13 2014 New Revision: 373519 URL: https://svnweb.freebsd.org/changeset/ports/373519 QAT: https://qat.redports.org/buildarchive/r373519/ Log: Repair build on arm with a patch to error.c Differential Revision: https://reviews.freebsd.org/D1217 PR: 195251 Submitted by: mikael.urankar@gmail.com Reviewed by: olivier@cochard.me Approved by: bapt (mentor) Added: head/devel/deforaos-libsystem/files/ head/devel/deforaos-libsystem/files/patch-src_error.c (contents, props changed) Added: head/devel/deforaos-libsystem/files/patch-src_error.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/deforaos-libsystem/files/patch-src_error.c Thu Nov 27 19:18:13 2014 (r373519) @@ -0,0 +1,45 @@ +--- src/error.c.orig 2014-11-21 17:41:49 UTC ++++ src/error.c +@@ -46,14 +46,22 @@ static char const * _error_do(int * code + /* error_get */ + char const * error_get(void) + { +- return _error_do(NULL, NULL, NULL); ++ va_list unused; ++ ++ bzero(&unused, sizeof(unused)); /* suppress uninitialized-value warnings */ ++ ++ return _error_do(NULL, NULL, unused); + } + + + /* error_get_code */ + char const * error_get_code(int * code) + { +- return _error_do(code, NULL, NULL); ++ va_list unused; ++ ++ bzero(&unused, sizeof(unused)); /* suppress uninitialized-value warnings */ ++ ++ return _error_do(code, NULL, unused); + } + + +@@ -98,12 +106,16 @@ int error_print(char const * program) + { + int code = 0; + ++ va_list unused; ++ ++ bzero(&unused, sizeof(unused)); /* suppress uninitialized-value warnings */ ++ + if(program != NULL) + { + fputs(program, stderr); + fputs(": ", stderr); + } +- fputs(_error_do(&code, NULL, NULL), stderr); ++ fputs(_error_do(&code, NULL, unused), stderr); + fputc('\n', stderr); + return code; + }