From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6171 invoked by alias); 10 Aug 2014 13:08:19 -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 6156 invoked by uid 89); 10 Aug 2014 13:08:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: youngberry.canonical.com Received: from youngberry.canonical.com (HELO youngberry.canonical.com) (91.189.89.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 10 Aug 2014 13:08:16 +0000 Received: from dslb-088-073-096-033.088.073.pools.vodafone-ip.de ([88.73.96.33] helo=[192.168.42.220]) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1XGSr6-000381-8Z for libffi-discuss@sourceware.org; Sun, 10 Aug 2014 13:08:12 +0000 Message-ID: <53E76EA8.5000804@ubuntu.com> Date: Sun, 10 Aug 2014 13:08:00 -0000 From: Matthias Klose User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: "libffi-discuss@sourceware.org" Subject: [patch] fix build error with -Werror=declaration-after-statement Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014/txt/msg00077.txt.bz2 seen while merging the 3.1 release into the python sources. The build fails when built with -Werror=declaration-after-statement Matthias diff -urN libffi-3.1/src/arm/ffi.c libffi/src/arm/ffi.c --- libffi-3.1/src/arm/ffi.c Sat Aug 09 23:52:34 2014 +0200 +++ libffi/src/arm/ffi.c Sat Aug 09 23:58:38 2014 +0200 @@ -154,9 +154,6 @@ int ffi_prep_args_VFP(char *stack, extended_cif *ecif, float *vfp_space) { - // make sure we are using FFI_VFP - FFI_ASSERT(ecif->cif->abi == FFI_VFP); - register unsigned int i, vi = 0; register void **p_argv; register char *argp, *regp, *eo_regp; @@ -165,6 +162,9 @@ char done_with_regs = 0; char is_vfp_type; + // make sure we are using FFI_VFP + FFI_ASSERT(ecif->cif->abi == FFI_VFP); + /* the first 4 words on the stack are used for values passed in core * registers. */ regp = stack;