From patchwork Tue Jul 12 18:25:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Barker X-Patchwork-Id: 2674 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id BF47C23F55 for ; Tue, 12 Jul 2011 18:25:45 +0000 (UTC) Received: from mail-qy0-f180.google.com (mail-qy0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id 8AD85A18021 for ; Tue, 12 Jul 2011 18:25:45 +0000 (UTC) Received: by qyk30 with SMTP id 30so3564251qyk.11 for ; Tue, 12 Jul 2011 11:25:45 -0700 (PDT) Received: by 10.229.217.3 with SMTP id hk3mr301552qcb.38.1310495143215; Tue, 12 Jul 2011 11:25:43 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.217.78 with SMTP id hl14cs251894qcb; Tue, 12 Jul 2011 11:25:42 -0700 (PDT) Received: by 10.227.57.148 with SMTP id c20mr214555wbh.54.1310495141259; Tue, 12 Jul 2011 11:25:41 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id fe3si19364980wbb.64.2011.07.12.11.25.40; Tue, 12 Jul 2011 11:25:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QgheO-0000RD-Cr for ; Tue, 12 Jul 2011 18:25:40 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 555342E802E for ; Tue, 12 Jul 2011 18:25:40 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: glmark2 X-Launchpad-Branch: ~glmark2-dev/glmark2/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 107 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~glmark2-dev/glmark2/trunk] Rev 107: Fix compiler warning about potentially uninitialized variable. Message-Id: <20110712182540.13598.79610.launchpad@loganberry.canonical.com> Date: Tue, 12 Jul 2011 18:25:40 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13388"; Instance="initZopeless config overlay" X-Launchpad-Hash: 60c78a9d15b7e8b79cae4625232b4707a4ed8636 ------------------------------------------------------------ revno: 107 committer: Jesse Barker branch nick: trunk timestamp: Tue 2011-07-12 11:22:45 -0700 message: Fix compiler warning about potentially uninitialized variable. Add '-Werror' to CXXFLAGS so that this sort of thing generates an error. modified: src/model.cpp wscript --- lp:glmark2 https://code.launchpad.net/~glmark2-dev/glmark2/trunk You are subscribed to branch lp:glmark2. To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription === modified file 'src/model.cpp' --- src/model.cpp 2011-07-12 09:05:53 +0000 +++ src/model.cpp 2011-07-12 18:22:45 +0000 @@ -160,7 +160,7 @@ bool Model::load_3ds(const std::string &filename) { - Object *object; + Object *object(0); Log::debug("Loading model from 3ds file '%s'\n", filename.c_str()); === modified file 'wscript' --- wscript 2011-06-30 14:13:04 +0000 +++ wscript 2011-07-12 18:22:45 +0000 @@ -62,7 +62,7 @@ ctx.check_cfg(package = pkg, uselib_store = uselib, args = '--cflags --libs', mandatory = mandatory) - ctx.env.append_unique('CXXFLAGS', '-Wall -Wextra -fms-extensions'.split(' ')) + ctx.env.append_unique('CXXFLAGS', '-Wall -Werror -Wextra -fms-extensions'.split(' ')) # Prepend -O# and -g flags so that they can be overriden by the # CFLAGS environment variable