From patchwork Wed Jul 14 10:26:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 58862 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id C34DCB6F04 for ; Wed, 14 Jul 2010 20:26:25 +1000 (EST) Received: (qmail 13020 invoked by alias); 14 Jul 2010 10:26:23 -0000 Received: (qmail 13012 invoked by uid 22791); 14 Jul 2010 10:26:22 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-bw0-f47.google.com (HELO mail-bw0-f47.google.com) (209.85.214.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Jul 2010 10:26:18 +0000 Received: by bwz10 with SMTP id 10so4822400bwz.20 for ; Wed, 14 Jul 2010 03:26:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.179.194 with SMTP id br2mr5654717bkb.196.1279103176341; Wed, 14 Jul 2010 03:26:16 -0700 (PDT) Received: by 10.204.57.197 with HTTP; Wed, 14 Jul 2010 03:26:16 -0700 (PDT) Date: Wed, 14 Jul 2010 12:26:16 +0200 Message-ID: Subject: [patch c++]: Fix possible uninitialized variable From: Kai Tietz To: GCC Patches Cc: Jason Merrill X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, ChangeLog 2010-07-14 Kai Tietz * method.c (synthesized_method_walk): Initialize check_vdtor by false. Tested for i686-pc-linux-gnu, i686-pc-mingw32, and x86_64-pc-mingw32. Ok for apply? Regards, Kai Index: method.c =================================================================== --- method.c (revision 162168) +++ method.c (working copy) @@ -941,7 +941,7 @@ bool diag) { tree binfo, base_binfo, field, scope, fnname, rval, argtype; - bool move_p, copy_arg_p, assign_p, expected_trivial, check_vdtor; + bool move_p, copy_arg_p, assign_p, expected_trivial, check_vdtor = false; VEC(tree,gc) *vbases; int i, quals, flags; tsubst_flags_t complain;