From patchwork Wed Jul 14 10:26:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [c++] : Fix possible uninitialized variable Date: Wed, 14 Jul 2010 00:26:16 -0000 From: Kai Tietz X-Patchwork-Id: 58862 Message-Id: To: GCC Patches Cc: Jason Merrill 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;