Priority: P2: Important
Affects Version/s: 5.14.1, 5.15.0, 6.0.0
Fix Version/s: None
Component/s: Build tools: moc
Commits:71223cc92ba1039f0dfde1bb30d3cccdab30c4dd (qt/qtbase/dev) 2efc1cd6aa2f9a4797ba22fcde8acf1fa7e777d1 (qt/qtbase/5.15)
I like to use "-Wextra-semi-stmt" in my application code. But the moc adds some Q_UNUSED with and without a semicolon. It would be helpful to unify this.
I tried to change this but it seems that Qt6 should switch the ; behaviour in user code.
Patch Set 1:
The consensus I've seen is that uses should have the semicolon, and Q_UNUSED should lose its semicolon (Qt6?)
Thiago Macieira Code-Review +1
Patch Set 1: Code-Review+1
I'd rather we changed the macro not to add it, but that's source incompatible.
change the macro would also be nice to let the user add the ; as it is confusing for a developer and the code formatter.