Mir

Merge lp:~vanvugt/mir/fix-error_stream-overrides into lp:mir

Proposed by Daniel van Vugt
Status: Merged
Approved by: Daniel van Vugt
Approved revision: no longer in the source branch.
Merged at revision: 3885
Proposed branch: lp:~vanvugt/mir/fix-error_stream-overrides
Merge into: lp:mir
Diff against target: 52 lines (+21/-20)
1 file modified
src/client/error_stream.h (+21/-20)
To merge this branch: bzr merge lp:~vanvugt/mir/fix-error_stream-overrides
Reviewer Review Type Date Requested Status
Chris Halse Rogers Approve
Cemil Azizoglu (community) Approve
Mir CI Bot continuous-integration Approve
Review via email: mp+313337@code.launchpad.net

Commit message

error_stream.h: Fix missing overrides

Description of the change

It appears to be clang's policy to ignore missing overrides only until you add one or more overrides. Then it starts caring about the rest and emits a warning/error...

To post a comment you must log in.
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Hmm the Ubuntu Archive has gone missing. Network failure.

Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :

PASSED: Continuous integration, rev:3885
https://mir-jenkins.ubuntu.com/job/mir-ci/2412/
Executed test runs:
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-mir/3141
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-0-fetch/3208
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/3200
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/3200
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/3200
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=yakkety/3170
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=clang,platform=mesa,release=yakkety/3170/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/3170
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=xenial+overlay/3170/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=yakkety/3170
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=amd64,compiler=gcc,platform=mesa,release=yakkety/3170/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=android,release=vivid+overlay/3170
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=cross-armhf,compiler=gcc,platform=android,release=vivid+overlay/3170/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/3170
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=android,release=vivid+overlay/3170/artifact/output/*zip*/output.zip
    SUCCESS: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/3170
        deb: https://mir-jenkins.ubuntu.com/job/build-2-binpkg-mir/arch=i386,compiler=gcc,platform=mesa,release=xenial+overlay/3170/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://mir-jenkins.ubuntu.com/job/mir-ci/2412/rebuild

review: Approve (continuous-integration)
Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

Ok

review: Approve
Revision history for this message
Chris Halse Rogers (raof) wrote :

Yup!

Clang assumes that if you've got *any* override specifiers then you're interested in using (the entirely optional) keyword.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/client/error_stream.h'
2--- src/client/error_stream.h 2016-12-09 02:54:31 +0000
3+++ src/client/error_stream.h 2016-12-16 02:07:43 +0000
4@@ -32,27 +32,28 @@
5 std::string const& error_msg, MirConnection* conn,
6 frontend::BufferStreamId id, std::shared_ptr<MirWaitHandle> const& wh);
7
8- MirSurfaceParameters get_parameters() const;
9- std::shared_ptr<ClientBuffer> get_current_buffer();
10- uint32_t get_current_buffer_id();
11- EGLNativeWindowType egl_native_window();
12- MirWaitHandle* swap_buffers(std::function<void()> const& done);
13- std::shared_ptr<MemoryRegion> secure_for_cpu_write();
14- int swap_interval() const;
15- MirWaitHandle* set_swap_interval(int interval);
16- MirNativeBuffer* get_current_buffer_package();
17- MirPlatformType platform_type();
18- frontend::BufferStreamId rpc_id() const;
19+ MirSurfaceParameters get_parameters() const override;
20+ std::shared_ptr<ClientBuffer> get_current_buffer() override;
21+ uint32_t get_current_buffer_id() override;
22+ EGLNativeWindowType egl_native_window() override;
23+ MirWaitHandle* swap_buffers(std::function<void()> const& done) override;
24+ std::shared_ptr<MemoryRegion> secure_for_cpu_write() override;
25+ int swap_interval() const override;
26+ MirWaitHandle* set_swap_interval(int interval) override;
27+ MirNativeBuffer* get_current_buffer_package() override;
28+ MirPlatformType platform_type() override;
29+ frontend::BufferStreamId rpc_id() const override;
30+ bool valid() const override;
31+ void buffer_available(mir::protobuf::Buffer const& buffer) override;
32+ void buffer_unavailable() override;
33+ void set_size(geometry::Size) override;
34+ geometry::Size size() const override;
35+ MirWaitHandle* set_scale(float) override;
36+ char const* get_error_message() const override;
37+ MirConnection* connection() const override;
38+ MirRenderSurface* render_surface() const override;
39+
40 MirWaitHandle* release(mir_buffer_stream_callback callback, void* context);
41- bool valid() const;
42- void buffer_available(mir::protobuf::Buffer const& buffer);
43- void buffer_unavailable();
44- void set_size(geometry::Size);
45- geometry::Size size() const;
46- MirWaitHandle* set_scale(float);
47- char const* get_error_message() const;
48- MirConnection* connection() const;
49- MirRenderSurface* render_surface() const;
50 private:
51 std::string const error;
52 MirConnection* const connection_;

Subscribers

People subscribed via source and target branches