Merge lp:~aacid/mir/fix_forward_declarations into lp:mir
| Status: | Merged |
|---|---|
| Approved by: | Alan Griffiths on 2015-10-01 |
| Approved revision: | 2975 |
| Merged at revision: | 2981 |
| Proposed branch: | lp:~aacid/mir/fix_forward_declarations |
| Merge into: | lp:mir |
| Diff against target: |
83 lines (+8/-8) 6 files modified
include/server/mir/compositor/display_listener.h (+1/-1) include/server/mir/frontend/buffer_stream.h (+1/-1) include/server/mir/frontend/session.h (+1/-1) include/server/mir/shell/focus_controller.h (+1/-1) include/server/mir/shell/shell.h (+1/-1) include/server/mir/shell/window_manager.h (+3/-3) |
| To merge this branch: | bzr merge lp:~aacid/mir/fix_forward_declarations |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Approve on 2015-10-01 | |
| Daniel van Vugt | Approve on 2015-09-30 | ||
| Alan Griffiths | 2015-09-29 | Approve on 2015-09-29 | |
|
Review via email:
|
|||
Commit Message
Fix forward declarations so that qtmir can be built with clang
| Alan Griffiths (alan-griffiths) wrote : | # |
> So problems existed outside code that we control.
So using the warning introduces problems existed outside code that we control.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:2975
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Daniel van Vugt (vanvugt) wrote : | # |
Huh. I remember a couple of years back we fixed these because clang complained about them. No idea why clang had't complained again till now.
| Alan Griffiths (alan-griffiths) wrote : | # |
> Huh. I remember a couple of years back we fixed these because clang complained
> about them. No idea why clang had't complained again till now.
We added "-Wno-mismatche
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
| Alan Griffiths (alan-griffiths) wrote : | # |
AFAICS landing problem was fixed by lp:~mir-team/mir/workaround-for-valgrind-opcode

I think this attempt is misguided and that you should use -Wno-mismatched -tags in qtmir.
/1/ According to the language standard there are no differences between "struct" and "class" in this (declaration) context. The only differences are in the context of definitions (of which there will only be one. So the warning is pointless.
/2/ We did try to keep clang happy for a while on Mir, but eventually ran into some standard library types that were declared "struct" in some headers and "class" in others. So problems existed outside code that we control.
So there's no advantage to using this warning, and a definite cost.