https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61913
--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Marek Polacek from comment #5) > (In reply to Manuel López-Ibáñez from comment #4) > > It is pretty strange that you need a Var() if it is not used anywhere. > > It is, we have a bug for it: PR61480. But there is no Init(1) there. In fact, I doubt Wodr is enabled by default as the documentation says without Init(1). > The issue is that lto.exp does not allow to scan for 'warning:'. Isn't that a bug/missing feature? It seems crucial if one wants to add warnings/errors generated by LTO.