Pass dummy '.' as format string for Timer() rather than an empty string,
in order to silence gcc warnings about empty format string
(-Wformat-zero-length). The actual format string is irrelevant
to the test in question.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Honestly, I think I'd just change the tests to use a non-zero format string. It's a silly warning, but it probably not worth bloating our cmake code because of it. I mean, it's not like the tests actually *have* to have an empty string. The string is just empty because there wasn't anything useful to put there.
Comment Actions
Changed to use '.' instead. Thanks for the suggestion, I like this option more too ;-). I have wrongly assumed the tests purposely check whether empty string works correctly.
Comment Actions
Thanks for tackling this. I've been annoyed by this warning too, but I haven't gotten around to doing anything about it yet. :/