Merge lp:~alan-griffiths/miral/fix-for-clang into lp:miral
Proposed by
Alan Griffiths
on 2016-08-22
| Status: | Merged |
|---|---|
| Approved by: | Gerry Boland on 2016-08-22 |
| Approved revision: | 294 |
| Merged at revision: | 292 |
| Proposed branch: | lp:~alan-griffiths/miral/fix-for-clang |
| Merge into: | lp:miral |
| Diff against target: |
63 lines (+30/-1) 2 files modified
CMakeLists.txt (+8/-1) test/CMakeLists.txt (+22/-0) |
| To merge this branch: | bzr merge lp:~alan-griffiths/miral/fix-for-clang |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gerry Boland | 2016-08-22 | Approve on 2016-08-22 | |
|
Review via email:
|
|||
Commit Message
Fix build with clang++
To post a comment you must log in.
lp:~alan-griffiths/miral/fix-for-clang
updated
on 2016-08-22
- 291. By Alan Griffiths on 2016-08-22
-
Link workaround to Mir bug (lp:1615587)
| Gerry Boland (gerboland) wrote : | # |
Command used:
cmake .. -DMIRAL_ENABLE_QT=1 -DMIRAL_
lp:~alan-griffiths/miral/fix-for-clang
updated
on 2016-08-22
- 292. By Alan Griffiths on 2016-08-22
-
merge :parent
- 293. By Alan Griffiths on 2016-08-22
-
Workaround lp:1615646
| Alan Griffiths (alan-griffiths) wrote : | # |
> Failed here in xenial+overlay:
> /usr/include/
> 'create_buffer' overrides a member function but is not marked 'override'
> [-Werror,
> graphics::BufferID create_
> properties);
Logged as Mir bug lp:1615646 and workaround added to MirAL
lp:~alan-griffiths/miral/fix-for-clang
updated
on 2016-08-22
- 294. By Alan Griffiths on 2016-08-22
-
Mir already fixed on trunk

Failed here in xenial+overlay:
[80/235] Building CXX object test/CMakeFiles /miral- test.dir/ mru_window_ list.cpp. o ccache/ clang++ -I../include -isystem /usr/include/ mirclient -isystem /usr/include/ mircommon -isystem /usr/include/ mircookie -I/usr/ include/ mirtest -I/usr/ include/ mirserver -I/usr/ include/ mirplatform -Wno-mismatched -tags -pthread -g -Werror -Wall -pedantic -Wextra -fPIC -fuse-ld=gold -Wno-unused- command- line-argument -Wnon-virtual-dtor -std=c++14 -Wno-mismatched -tags -Wno-return- type-c- linkage -MMD -MT test/CMakeFiles /miral- test.dir/ mru_window_ list.cpp. o -MF test/CMakeFiles /miral- test.dir/ mru_window_ list.cpp. o.d -o test/CMakeFiles /miral- test.dir/ mru_window_ list.cpp. o -c ../test/ mru_window_ list.cpp mru_window_ list.cpp: 22: mirtest/ mir/test/ doubles/ stub_session. h:92:24: error: 'create_buffer' overrides a member function but is not marked 'override' [-Werror, -Winconsistent- missing- override] :BufferID create_ buffer( graphics: :BufferProperti es const& properties);
^ mirserver/ mir/scene/ session. h:72:32: note: overridden virtual function is here buffer( graphics: :BufferProperti es const& properties) = 0;
^ mru_window_ list.cpp: 22: mirtest/ mir/test/ doubles/ stub_session. h:93:10: error: 'destroy_buffer' overrides a member function but is not marked 'override' [-Werror, -Winconsistent- missing- override] buffer( graphics: :BufferID) ; mirserver/ mir/scene/ session. h:73:18: note: overridden virtual function is here buffer( graphics: :BufferID) = 0; mru_window_ list.cpp: 22: mirtest/ mir/test/ doubles/ stub_session. h:94:39: error: 'get_buffer' overrides a member function but is not marked 'override' [-Werror, -Winconsistent- missing- override] :shared_ ptr<graphics: :Buffer> get_buffer( graphics: :BufferID) ;
^ mirserver/ mir/scene/ session. h:74:47: note: overridden virtual function is here ptr<graphics: :Buffer> get_buffer( graphics: :BufferID) = 0;
^ tests/framework /CMakeFiles/ qtmir-test- framework- static. dir/fake_ mirsurface. cpp.o
FAILED: /usr/lib/
In file included from ../test/
/usr/include/
graphics:
/usr/include/
virtual graphics::BufferID create_
In file included from ../test/
/usr/include/
void destroy_
^
/usr/include/
virtual void destroy_
^
In file included from ../test/
/usr/include/
std:
/usr/include/
virtual std::shared_
3 errors generated.
[80/235] Building CXX object miral-qt/
ninja: build stopped: subcommand failed.