Open davide-q opened 2 weeks ago
This looks like a warning, not an error? (And a bogus one at that?)
This line, OTOH, looks a bit suspect compared to the rest:
@alexrp of course you are correct, I got confused by the fact that the warning was about a line which invoked ExitOnError
and that my build failed for other 2 reasons (including the one mentioned in the other issue I mentioned earlier).
That said, if one adds -Wpedantic
to the build line, then those rules should be followed, otherwise it just makes the output long unnecessarily verbose, no?
Yeah, I mean, ideally there should be zero warnings. But what often happens in large code bases like LLVM is that warnings slip through because you have people compiling the project with an almost incomprehensible number of different compilers (type, version, host machine, target machine, ...). Also, in this particular case, it just looks like an odd compiler bug; there's no array declaration there.
(I manually replaced spaces with underscores, to have the caret to correctly point to the error)