From patchwork Fri Jan 4 20:27:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Whitney X-Patchwork-Id: 209538 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id D7CFE2C0085 for ; Sat, 5 Jan 2013 07:27:19 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755133Ab3ADU1T (ORCPT ); Fri, 4 Jan 2013 15:27:19 -0500 Received: from mail-vc0-f182.google.com ([209.85.220.182]:49391 "EHLO mail-vc0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754788Ab3ADU1S (ORCPT ); Fri, 4 Jan 2013 15:27:18 -0500 Received: by mail-vc0-f182.google.com with SMTP id fy27so16929657vcb.41 for ; Fri, 04 Jan 2013 12:27:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=4UuMBTsUVQiQIZA71XJBWZGNWQSClXkZdV+qn1qK1lc=; b=rNKS+mbAGst1QsEEzoZVP3rqwQ+LXeTQTGMm6bac1b/g5MnNkRWyqW/lDS6Mn0hsu4 Xjuatfkcy1IPYhQf4XqgpYO2nMkxHyXhgeQQKuvkpEQdsru7l0lvdXebF7EQJoMl4RD8 l2XqfWIVx6Y/PDJXrn0pgR4cMzNwR7RsAQ89vG2WAAq1PZOWpT7RVfJ7rgunuFF17Hng d0iMpb3ktKHJxNOTUSP3c9l0aRbk68FYcTrtkCUFTJc01DV4kbFvE7xjIkyYKzHRh1ye jUT74QXLg288KGARKQup1+c61TDoFmhTOwfiayBb5G6T2PMVyzEjQtpBFXuzUQq5c5eU EerQ== X-Received: by 10.58.221.130 with SMTP id qe2mr80381038vec.14.1357331236614; Fri, 04 Jan 2013 12:27:16 -0800 (PST) Received: from wallace (c-75-68-62-236.hsd1.nh.comcast.net. [75.68.62.236]) by mx.google.com with ESMTPS id l8sm47222372vdh.8.2013.01.04.12.27.14 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Jan 2013 12:27:15 -0800 (PST) Date: Fri, 4 Jan 2013 15:27:12 -0500 From: Eric Whitney To: linux-ext4@vger.kernel.org Cc: tytso@mit.edu Subject: [PATCH] config: silence printf format warnings Message-ID: <20130104202711.GA22365@wallace> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org The printfs in the asm_types.c code contained within parse-types.sh expect sizeof to return an int. Fix this for architectures where this isn't true (x86_64, etc.) so we don't see warning messages while running the configure script. Signed-off-by: Eric Whitney --- config/parse-types.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/config/parse-types.sh b/config/parse-types.sh index d7cb9cc..c02d8cb 100755 --- a/config/parse-types.sh +++ b/config/parse-types.sh @@ -31,7 +31,7 @@ main(int argc, char **argv) #ifdef __U8_TYPEDEF if (sizeof(__U8_TYPEDEF) != 1) { printf("Sizeof(__U8__TYPEDEF) is %d should be 1\n", - sizeof(__U8_TYPEDEF)); + (int) sizeof(__U8_TYPEDEF)); exit(1); } #else @@ -40,7 +40,7 @@ main(int argc, char **argv) #ifdef __S8_TYPEDEF if (sizeof(__S8_TYPEDEF) != 1) { printf("Sizeof(_S8__TYPEDEF) is %d should be 1\n", - sizeof(__S8_TYPEDEF)); + (int) sizeof(__S8_TYPEDEF)); exit(1); } #else @@ -49,7 +49,7 @@ main(int argc, char **argv) #ifdef __U16_TYPEDEF if (sizeof(__U16_TYPEDEF) != 2) { printf("Sizeof(__U16__TYPEDEF) is %d should be 2\n", - sizeof(__U16_TYPEDEF)); + (int) sizeof(__U16_TYPEDEF)); exit(1); } #else @@ -58,7 +58,7 @@ main(int argc, char **argv) #ifdef __S16_TYPEDEF if (sizeof(__S16_TYPEDEF) != 2) { printf("Sizeof(__S16__TYPEDEF) is %d should be 2\n", - sizeof(__S16_TYPEDEF)); + (int) sizeof(__S16_TYPEDEF)); exit(1); } #else @@ -68,7 +68,7 @@ main(int argc, char **argv) #ifdef __U32_TYPEDEF if (sizeof(__U32_TYPEDEF) != 4) { printf("Sizeof(__U32__TYPEDEF) is %d should be 4\n", - sizeof(__U32_TYPEDEF)); + (int) sizeof(__U32_TYPEDEF)); exit(1); } #else @@ -77,7 +77,7 @@ main(int argc, char **argv) #ifdef __S32_TYPEDEF if (sizeof(__S32_TYPEDEF) != 4) { printf("Sizeof(__S32__TYPEDEF) is %d should be 4\n", - sizeof(__S32_TYPEDEF)); + (int) sizeof(__S32_TYPEDEF)); exit(1); } #else @@ -87,7 +87,7 @@ main(int argc, char **argv) #ifdef __U64_TYPEDEF if (sizeof(__U64_TYPEDEF) != 8) { printf("Sizeof(__U64__TYPEDEF) is %d should be 8\n", - sizeof(__U64_TYPEDEF)); + (int) sizeof(__U64_TYPEDEF)); exit(1); } #else @@ -96,7 +96,7 @@ main(int argc, char **argv) #ifdef __S64_TYPEDEF if (sizeof(__S64_TYPEDEF) != 8) { printf("Sizeof(__S64__TYPEDEF) is %d should be 8\n", - sizeof(__S64_TYPEDEF)); + (int) sizeof(__S64_TYPEDEF)); exit(1); } #else