From patchwork Sun Sep 5 15:07:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 63846 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 592CEB70FF for ; Mon, 6 Sep 2010 01:26:42 +1000 (EST) Received: from localhost ([127.0.0.1]:38739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsH79-0002kd-GO for incoming@patchwork.ozlabs.org; Sun, 05 Sep 2010 11:26:39 -0400 Received: from [140.186.70.92] (port=53482 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsGoa-0007J9-Pv for qemu-devel@nongnu.org; Sun, 05 Sep 2010 11:07:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsGoZ-0000cV-HT for qemu-devel@nongnu.org; Sun, 05 Sep 2010 11:07:28 -0400 Received: from mail-qy0-f180.google.com ([209.85.216.180]:34507) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsGoZ-0000UM-Do for qemu-devel@nongnu.org; Sun, 05 Sep 2010 11:07:27 -0400 Received: by mail-qy0-f180.google.com with SMTP id 31so3889321qyk.4 for ; Sun, 05 Sep 2010 08:07:27 -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=C4nKSjX3JYfFXiU+07cIRkkeSqqMDVd1txSLKoCxJ2A=; b=WiRLUXPniNkstfFYEWkFwFWLrVtD0OyWeCIIfwPt6NYttV1mcNoOqqZeCipmezCgbJ Tu3JFSIrfDZSyIJraW/wDqS6ZzThCb0F8Bs3UJoRp+znXJ8LenUcKrMrc2Nu6qFBAv7P 07ED6HycR26xe/wGS9ADZQdApGzLZ4JFXxWyc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=xKJQk0avoIySKLMuTGUeYrsDvBKxtEAxA/e0mL6vyfZCxt+2MArADwzxAtEwgsUgqN WJbDNlkIxwKQCDsbZHOFqWUKQ3g5NXpGlo5KKYZkFKNpviq6g3C/zay23cS+r6s7iQf4 tKBSWvTcWSIe3VBtomX+A+eY6GUAu55tami4k= Received: by 10.224.36.204 with SMTP id u12mr1799838qad.134.1283699247094; Sun, 05 Sep 2010 08:07:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.240.135 with HTTP; Sun, 5 Sep 2010 08:07:07 -0700 (PDT) From: Blue Swirl Date: Sun, 5 Sep 2010 15:07:07 +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 146dac0..47bbe39 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