From 43833b681df0fff4cc22a082b02c19fae147781c Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Sun, 19 Aug 2018 09:13:30 +0200 Subject: [PATCH] supp_pattEQinp: initialise a variable that gcc 7.3.1 + LTO thinks might be used uninitialised. --- coregrind/m_errormgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coregrind/m_errormgr.c b/coregrind/m_errormgr.c index ebc947d984..5dc1725200 100644 --- a/coregrind/m_errormgr.c +++ b/coregrind/m_errormgr.c @@ -1829,7 +1829,7 @@ static Bool supp_pattEQinp ( const void* supplocV, const void* addrV, const SuppLoc* supploc = (const SuppLoc*)supplocV; /* PATTERN */ IPtoFunOrObjCompleter* ip2fo = (IPtoFunOrObjCompleter*)inputCompleterV; const HChar* funobjsrc_name; // Fun, Obj, or src file name. - UInt src_lineno; + UInt src_lineno = 0; Bool ret; expandInput(ip2fo, ixInput); -- 2.47.3