From patchwork Fri Sep 10 21:00:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 64466 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C799CB70AA for ; Sat, 11 Sep 2010 07:19:21 +1000 (EST) Received: from localhost ([127.0.0.1]:45556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuB0A-0000zv-OK for incoming@patchwork.ozlabs.org; Fri, 10 Sep 2010 17:19:18 -0400 Received: from [140.186.70.92] (port=52198 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuAi8-00023z-E1 for qemu-devel@nongnu.org; Fri, 10 Sep 2010 17:00:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OuAi6-0001kw-R9 for qemu-devel@nongnu.org; Fri, 10 Sep 2010 17:00:40 -0400 Received: from mail-qy0-f180.google.com ([209.85.216.180]:48523) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuAi6-0001ks-N4 for qemu-devel@nongnu.org; Fri, 10 Sep 2010 17:00:38 -0400 Received: by qyk31 with SMTP id 31so3306337qyk.4 for ; Fri, 10 Sep 2010 14:00:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=hVoIor8ueZHnmhIFEsEsogiEjVc91OOOuoltHCa9t9U=; b=hE2JTYN4LTuuJNJowzbiuquVxKymVSXe2IyFmBkm3CKHZQaoCMx+Y2r3n+TTAxv9bv nczDOTe1vcRfRGx5TOtlgnoUlHrudjeMiR8oXdy1DSxUvUvKiM8tjB/c/yyZJ9X4pZuq xXsu0wNUsHvaAi9UN0zM5zURQ3QXkgNTsxMvk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=ZyNa6ccK3wFsYhubEsCFD+ZSHd7+iQVAu7wmL+ab0alHC4a73d5KhIJqGKmAYMYn/k woj8i1mkP2T/MxrRRQ7Rt2nCYHjEWWG2SatrUTHlpFjEPE7CdEzVKyXuRt5z0WiXM+vA QsS0T4Fe+IiRcqHSjkV30RIWiT0DLVBk90USg= Received: by 10.224.45.139 with SMTP id e11mr784714qaf.79.1284152438144; Fri, 10 Sep 2010 14:00:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.240.135 with HTTP; Fri, 10 Sep 2010 14:00:18 -0700 (PDT) From: Blue Swirl Date: Fri, 10 Sep 2010 21:00:18 +0000 Message-ID: To: qemu-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 12/15] Use gcc warning flag -Wtype-limits X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org If the compiler supports the warning flag -Wtype-limits, use it. Signed-off-by: Blue Swirl --- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 4061cb7..29d3548 100755 --- a/configure +++ b/configure @@ -138,7 +138,7 @@ QEMU_CFLAGS="-D_FORTIFY_SOURCE=2 $QEMU_CFLAGS" QEMU_CFLAGS="-I. -I\$(SRC_PATH) $QEMU_CFLAGS" LDFLAGS="-g $LDFLAGS" -gcc_flags="-Wold-style-declaration -Wold-style-definition -fstack-protector-all" +gcc_flags="-Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all" cat > $TMPC << EOF int main(void) { return 0; } EOF