Merge lp:~aacid/unity8/add_override_warning into lp:unity8
| Status: | Merged |
|---|---|
| Approved by: | Michael Zanetti on 2016-12-01 |
| Approved revision: | 2351 |
| Merged at revision: | 2728 |
| Proposed branch: | lp:~aacid/unity8/add_override_warning |
| Merge into: | lp:unity8 |
| Prerequisite: | lp:~aacid/unity8/add_override |
| Diff against target: |
79 lines (+20/-3) 5 files modified
CMakeLists.txt (+6/-0) plugins/LightDM/FullLightDM/CMakeLists.txt (+5/-1) plugins/Unity/Indicators/CMakeLists.txt (+3/-0) tests/mocks/QtMultimedia/videooutput.h (+1/-1) tests/uqmlscene/CMakeLists.txt (+5/-1) |
| To merge this branch: | bzr merge lp:~aacid/unity8/add_override_warning |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Zanetti (community) | 2016-05-13 | Approve on 2016-12-01 | |
| Unity8 CI Bot | continuous-integration | Approve on 2016-11-28 | |
|
Review via email:
|
|||
Commit Message
Add the Wsuggest-override flag to gcc
While at it mark system includes as such so we don't get warnings we can not fix
Description of the Change
Blocked by https:/
* Are there any related MPs required for this MP to build/function as expected?
Prereq
* Did you perform an exploratory manual test run of your code change and any related functionality?
N/A
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
* If you changed the UI, has there been a design review?
N/A
| Michael Zanetti (mzanetti) wrote : | # |
+1 on removing the pragmas and using the SYSTEM keyword on the includes instead.
In general I would be for enabling -Wsuggest-override, however, it triggers a lot of warnings that we might not be able to fix, like
In file included from /home/micha/
/home/micha/
/home/micha/
/home/micha/
Would it be possible to exclude mocked code from it? Also it seems the Q_OBJECT macro generates some code that fails this check. In order to enable this we'd need to solve those problems, otherwise we'll have so much noise on the compiler output that proper warnings would drown.
| Albert Astals Cid (aacid) wrote : | # |
ccache is the one to blame :/
| Unity8 CI Bot (unity8-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:2351
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
| Michael Zanetti (mzanetti) wrote : | # |
those warnings seem to have disappeared. Most other changes went in already. I'm ok with the remaining changes. It seems to build fine, CI is happy too.

PASSED: Continuous integration, rev:2347 /unity8- jenkins. ubuntu. com/job/ lp-unity8- ci/1212/ /unity8- jenkins. ubuntu. com/job/ test-0- autopkgtest/ label=amd64, release= vivid+overlay, testname= qmluitests. sh/753 /unity8- jenkins. ubuntu. com/job/ test-0- autopkgtest/ label=amd64, release= xenial+ overlay, testname= qmluitests. sh/753 /unity8- jenkins. ubuntu. com/job/ build-0- fetch/1627 /unity8- jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= vivid+overlay/ 1581 /unity8- jenkins. ubuntu. com/job/ build-1- sourcepkg/ release= xenial+ overlay/ 1581 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 1574 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 1574/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 1574 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 1574/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 1574 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 1574/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 1574 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 1574/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= vivid+overlay/ 1574 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= vivid+overlay/ 1574/artifact/ output/ *zip*/output. zip /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 1574 /unity8- jenkins. ubuntu. com/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 1574/artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /unity8- jenkins. ubuntu. com/job/ lp-unity8- ci/1212/ rebuild
https:/