From 3230b7c8aa4df69ae5550935a9be729bb465570a Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Wed, 27 May 2015 08:25:39 +0200 Subject: [PATCH] hoaparse: fix errors observed with gcc-snapshot gcc version 6.0.0 20150516 (experimental) [trunk revision 223239] (Debian 20150516-1) * src/hoaparse/hoaparse.yy (state_info): Initialize used and declared, otherwise they are uninitialized after a vector resize. --- src/hoaparse/hoaparse.yy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hoaparse/hoaparse.yy b/src/hoaparse/hoaparse.yy index b50c13033..cb43a9015 100644 --- a/src/hoaparse/hoaparse.yy +++ b/src/hoaparse/hoaparse.yy @@ -64,8 +64,8 @@ { struct state_info { - bool declared; - bool used; + bool declared = false; + bool used = false; spot::location used_loc; }; spot::hoa_aut_ptr h;