From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24976 invoked by alias); 11 Oct 2013 01:40:58 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 24963 invoked by uid 89); 11 Oct 2013 01:40:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 11 Oct 2013 01:40:57 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1VURio-000346-1D from Sandra_Loosemore@mentor.com for libffi-discuss@sourceware.org; Thu, 10 Oct 2013 18:40:54 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 10 Oct 2013 18:40:54 -0700 Received: from [IPv6:::1] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Thu, 10 Oct 2013 18:40:53 -0700 Message-ID: <5257570B.4050600@codesourcery.com> Date: Fri, 11 Oct 2013 01:40:00 -0000 From: Sandra Loosemore User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Subject: [PATCH] fix uninitialized variable in testsuite Content-Type: multipart/mixed; boundary="------------020006050200050402070504" X-SW-Source: 2013/txt/msg00179.txt.bz2 --------------020006050200050402070504 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 127 I found that the test cls_many_mixed_args.c was failing due to an uninitialized variable. This patch fixes it. OK? -Sandra --------------020006050200050402070504 Content-Type: text/x-log; name="libffi-testsuite-fix.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="libffi-testsuite-fix.log" Content-length: 154 2013-10-10 Sandra Loosemore * testsuite/libffi.call/cls_many_mixed_args.c (cls_ret_double_fn): Fix uninitialized variable. --------------020006050200050402070504 Content-Type: text/x-patch; name="libffi-testsuite-fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="libffi-testsuite-fix.patch" Content-length: 461 diff --git a/testsuite/libffi.call/cls_many_mixed_args.c b/testsuite/libffi.call/cls_many_mixed_args.c index fc75b1d..18cdfcc 100644 --- a/testsuite/libffi.call/cls_many_mixed_args.c +++ b/testsuite/libffi.call/cls_many_mixed_args.c @@ -15,7 +15,7 @@ static void cls_ret_double_fn(ffi_cif* cif __UNUSED__, void* resp, void** args, void* userdata __UNUSED__) { int i; - double r; + double r = 0; double t; for(i = 0; i < NARGS; i++) { --------------020006050200050402070504--