https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61913
--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> --- (In reply to Manuel López-Ibáñez from comment #6) > (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). I guess it doesn't matter whether there's Init() or not then. > > 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. It certainly is a deficiency. > In particular, the manual does not show Wodr: > https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options The description is there (after -Wno-overflow), but @item is missing, so the warning name isn't listed there. I'll add it.